public class Prism extends Object implements Polyhedron
| Constructor and Description |
|---|
Prism(int n) |
| Modifier and Type | Method and Description |
|---|---|
double |
getCirumscribedRadius()
Returns the radius of a circumscribed sphere, that goes
through all vertices
|
double |
getHeight() |
double |
getInscribedRadius()
Returns the radius of an inscribed sphere, that is tangent to each
of the icosahedron's faces
|
List<int[]> |
getLineLoops() |
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
|
javax.vecmath.Point3d[] |
getVertices()
Returns the vertices of an n-fold polygon of given radius and center
|
int |
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 vertices
|
void |
setHeight(double height) |
void |
setInscribedRadius(double radius)
Sets the radius of an inscribed sphere, that is tangent to each
of the icosahedron's faces
|
public Prism(int n)
public double getHeight()
public void setHeight(double height)
height - the height to setpublic double getCirumscribedRadius()
getCirumscribedRadius in interface Polyhedronpublic void setCirumscribedRadius(double cirumscribedRadius)
cirumscribedRadius - the cirumscribedRadius to setpublic double getInscribedRadius()
public void setInscribedRadius(double radius)
inscribedRadius - the inscribedRadius to setpublic javax.vecmath.Point3d[] getVertices()
getVertices in interface Polyhedronpublic List<int[]> getLineLoops()
getLineLoops in interface Polyhedronpublic static javax.vecmath.Point3d[] getPolygonVertices(int n, double radius, javax.vecmath.Point3d center)
public int getViewCount()
getViewCount in interface Polyhedronpublic String getViewName(int index)
getViewName in interface Polyhedronpublic javax.vecmath.Matrix3d getViewMatrix(int index)
getViewMatrix in interface PolyhedronCopyright © 2000–2017 BioJava. All rights reserved.