Class Icosahedron
java.lang.Object
org.biojava.nbio.structure.symmetry.geometry.Icosahedron
- All Implemented Interfaces:
Polyhedron
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
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 icosahedron's facesList<int[]>
double
Returns the radius of a sphere, that is tangent to each of the icosahedron's edgesjavax.vecmath.Point3d[]
int
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 icosahedron's facesvoid
setMidRadius
(double radius) Sets the radius of radius of a sphere, that is tangent to each of the icosahedron's edges
-
Constructor Details
-
Icosahedron
public Icosahedron()
-
-
Method Details
-
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 icosahedron'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 icosahedron'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 icosahedron'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 icosahedron's edges- Parameters:
midRadius
- the midRadius to set
-
getVertices
public javax.vecmath.Point3d[] getVertices()- Specified by:
getVertices
in interfacePolyhedron
-
getLineLoops
- Specified by:
getLineLoops
in interfacePolyhedron
-
getViewCount
public int getViewCount()- Specified by:
getViewCount
in interfacePolyhedron
-
getViewName
- Specified by:
getViewName
in interfacePolyhedron
-
getViewMatrix
public javax.vecmath.Matrix3d getViewMatrix(int index) - Specified by:
getViewMatrix
in interfacePolyhedron
-