public class Icosahedron extends java.lang.Object implements Polyhedron
| Constructor and Description |
|---|
Icosahedron() |
| Modifier and Type | Method and Description |
|---|---|
double |
getCirumscribedRadius()
Returns the radius of a circumscribed sphere, that goes
through all vertices
|
double |
getInscribedRadius()
Returns the radius of an inscribed sphere, that is tangent to each
of the icosahedron's faces
|
java.util.List<int[]> |
getLineLoops() |
double |
getMidRadius()
Returns the radius of a sphere, that is tangent to each
of the icosahedron's edges
|
Point3d[] |
getVertices() |
int |
getViewCount() |
Matrix3d |
getViewMatrix(int index) |
java.lang.String |
getViewName(int index) |
void |
setCirumscribedRadius(double cirumscribedRadius)
Set the radius of a circumscribed sphere, that goes
through all vertices
|
void |
setInscribedRadius(double radius)
Sets the radius of an inscribed sphere, that is tangent to each
of the icosahedron's faces
|
void |
setMidRadius(double radius)
Sets the radius of radius of a sphere, that is tangent to each
of the icosahedron's edges
|
public 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 double getMidRadius()
public void setMidRadius(double radius)
midRadius - the midRadius to setpublic Point3d[] getVertices()
getVertices in interface Polyhedronpublic java.util.List<int[]> getLineLoops()
getLineLoops in interface Polyhedronpublic int getViewCount()
getViewCount in interface Polyhedronpublic java.lang.String getViewName(int index)
getViewName in interface Polyhedronpublic Matrix3d getViewMatrix(int index)
getViewMatrix in interface Polyhedron