Class Octahedron
- java.lang.Object
-
- org.biojava.nbio.structure.symmetry.geometry.Octahedron
-
- All Implemented Interfaces:
Polyhedron
public class Octahedron extends Object implements Polyhedron
-
-
Constructor Summary
Constructors Constructor Description Octahedron()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.vecmath.Point3d
getC2Axis(double scale)
javax.vecmath.Point3d
getC3Axis(double scale)
javax.vecmath.Point3d
getC4Axis(double scale)
double
getCirumscribedRadius()
Returns the radius of a circumscribed sphere, that goes through all verticesdouble
getInscribedRadius()
Returns the radius of an inscribed sphere, that is tangent to each of the octahedron's facesList<int[]>
getLineLoops()
double
getMidRadius()
Returns the radius of a sphere, that is tangent to each of the octahedron's edgesjavax.vecmath.Point3d[]
getVertices()
Returns the vertices of an n-fold polygon of given radius and centerint
getViewCount()
javax.vecmath.Matrix3d
getViewMatrix(int index)
String
getViewName(int index)
void
setCirumscribedRadius(double cirumscribedRadius)
Set the radius of a circumscribed sphere, that goes through all verticesvoid
setInscribedRadius(double radius)
Sets the radius of an inscribed sphere, that is tangent to each of the octahedron's facesvoid
setMidRadius(double radius)
Sets the radius of radius of a sphere, that is tangent to each of the octahedron's edges
-
-
-
Constructor Detail
-
Octahedron
public Octahedron()
-
-
Method Detail
-
getCirumscribedRadius
public double getCirumscribedRadius()
Returns the radius of a circumscribed sphere, that goes through all vertices- Specified by:
getCirumscribedRadius
in 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 octahedron'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 octahedron'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 octahedron'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 octahedron'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:
getVertices
in interfacePolyhedron
- Parameters:
n
-radius
-center
-- Returns:
-
getLineLoops
public List<int[]> getLineLoops()
- Specified by:
getLineLoops
in interfacePolyhedron
-
getC4Axis
public javax.vecmath.Point3d getC4Axis(double scale)
-
getC3Axis
public javax.vecmath.Point3d getC3Axis(double scale)
-
getC2Axis
public javax.vecmath.Point3d getC2Axis(double scale)
-
getViewCount
public int getViewCount()
- Specified by:
getViewCount
in interfacePolyhedron
-
getViewName
public String getViewName(int index)
- Specified by:
getViewName
in interfacePolyhedron
-
getViewMatrix
public javax.vecmath.Matrix3d getViewMatrix(int index)
- Specified by:
getViewMatrix
in interfacePolyhedron
-
-