Class Tetrahedron
- java.lang.Object
-
- org.biojava.nbio.structure.symmetry.geometry.Tetrahedron
-
- All Implemented Interfaces:
Polyhedron
public class Tetrahedron extends Object implements Polyhedron
-
-
Constructor Summary
Constructors Constructor Description Tetrahedron()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetCirumscribedRadius()Returns the radius of a circumscribed sphere, that goes through all verticesdoublegetInscribedRadius()Returns the radius of an inscribed sphere, that is tangent to each of the tetrahedrons's facesList<int[]>getLineLoops()doublegetMidRadius()Returns the radius of a sphere, that is tangent to each of the tetrahedron's edgesjavax.vecmath.Point3d[]getVertices()Returns the vertices of an n-fold polygon of given radius and centerintgetViewCount()javax.vecmath.Matrix3dgetViewMatrix(int index)StringgetViewName(int index)voidsetCirumscribedRadius(double cirumscribedRadius)Set the radius of a circumscribed sphere, that goes through all verticesvoidsetInscribedRadius(double radius)Sets the radius of an inscribed sphere, that is tangent to each of the tetrahedron's facesvoidsetMidRadius(double radius)Sets the radius of radius of a sphere, that is tangent to each of the tetrahedron's edges
-
-
-
Constructor Detail
-
Tetrahedron
public Tetrahedron()
-
-
Method Detail
-
getCirumscribedRadius
public double getCirumscribedRadius()
Returns the radius of a circumscribed sphere, that goes through all vertices- Specified by:
getCirumscribedRadiusin interfacePolyhedron- Returns:
- the cirumscribedRadius
-
setCirumscribedRadius
public void setCirumscribedRadius(double cirumscribedRadius)
Set the radius of a circumscribed sphere, that goes through all vertices- Parameters:
cirumscribedRadius- the cirumscribedRadius to set
-
getInscribedRadius
public double getInscribedRadius()
Returns the radius of an inscribed sphere, that is tangent to each of the tetrahedrons's faces- Returns:
- the inscribedRadius
-
setInscribedRadius
public void setInscribedRadius(double radius)
Sets the radius of an inscribed sphere, that is tangent to each of the tetrahedron's faces- Parameters:
inscribedRadius- the inscribedRadius to set
-
getMidRadius
public double getMidRadius()
Returns the radius of a sphere, that is tangent to each of the tetrahedron's edges- Returns:
- the midRadius
-
setMidRadius
public void setMidRadius(double radius)
Sets the radius of radius of a sphere, that is tangent to each of the tetrahedron's edges- Parameters:
midRadius- the midRadius to set
-
getVertices
public javax.vecmath.Point3d[] getVertices()
Returns the vertices of an n-fold polygon of given radius and center- Specified by:
getVerticesin interfacePolyhedron- Parameters:
n-radius-center-- Returns:
-
getLineLoops
public List<int[]> getLineLoops()
- Specified by:
getLineLoopsin interfacePolyhedron
-
getViewCount
public int getViewCount()
- Specified by:
getViewCountin interfacePolyhedron
-
getViewName
public String getViewName(int index)
- Specified by:
getViewNamein interfacePolyhedron
-
getViewMatrix
public javax.vecmath.Matrix3d getViewMatrix(int index)
- Specified by:
getViewMatrixin interfacePolyhedron
-
-