Class Prism
java.lang.Object
org.biojava.nbio.structure.symmetry.geometry.Prism
- All Implemented Interfaces:
 Polyhedron
- Author:
 - Peter
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the radius of a circumscribed sphere, that goes through all verticesdoubledoubleReturns the radius of an inscribed sphere, that is tangent to each of the icosahedron's facesList<int[]> static javax.vecmath.Point3d[]getPolygonVertices(int n, double radius, javax.vecmath.Point3d center) Returns the vertices of an n-fold polygon of given radius and centerjavax.vecmath.Point3d[]Returns the vertices of an n-fold polygon of given radius and centerintjavax.vecmath.Matrix3dgetViewMatrix(int index) getViewName(int index) voidsetCirumscribedRadius(double cirumscribedRadius) Set the radius of a circumscribed sphere, that goes through all verticesvoidsetHeight(double height) voidsetInscribedRadius(double radius) Sets the radius of an inscribed sphere, that is tangent to each of the icosahedron's faces 
- 
Constructor Details
- 
Prism
 
 - 
 - 
Method Details
- 
getHeight
- Returns:
 - the height
 
 - 
setHeight
- Parameters:
 height- the height to set
 - 
getCirumscribedRadius
Returns the radius of a circumscribed sphere, that goes through all vertices- Specified by:
 getCirumscribedRadiusin 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 icosahedron's faces- Returns:
 - the inscribedRadius
 
 - 
setInscribedRadius
Sets the radius of an inscribed sphere, that is tangent to each of the icosahedron's faces- Parameters:
 radius- the inscribedRadius to set
 - 
getVertices
Returns the vertices of an n-fold polygon of given radius and center- Specified by:
 getVerticesin interfacePolyhedron- Returns:
 
 - 
getLineLoops
- Specified by:
 getLineLoopsin interfacePolyhedron
 - 
getPolygonVertices
public static javax.vecmath.Point3d[] getPolygonVertices(int n, double radius, javax.vecmath.Point3d center) Returns the vertices of an n-fold polygon of given radius and center- Returns:
 
 - 
getViewCount
- Specified by:
 getViewCountin interfacePolyhedron
 - 
getViewName
- Specified by:
 getViewNamein interfacePolyhedron
 - 
getViewMatrix
- Specified by:
 getViewMatrixin interfacePolyhedron
 
 -