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