public class RectangularPrism extends java.lang.Object implements Polyhedron
Constructor and Description |
---|
RectangularPrism(double length,
double width,
double height) |
Modifier and Type | Method and Description |
---|---|
double |
getCirumscribedRadius()
Returns the radius of a circumscribed sphere (length of diagonal of
rectangular prism/2, that goes through at least four vertices
|
double |
getHeight()
Returns the radius of a sphere, that is tangent to each
of the octahedron's edges
|
double |
getLength()
Returns the radius of a circumscribed sphere, that goes
through all vertices
|
java.util.List<int[]> |
getLineLoops() |
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) |
java.lang.String |
getViewName(int index) |
double |
getWidth()
Returns the radius of an inscribed sphere, that is tangent to each
of the octahedron's faces
|
public RectangularPrism(double length, double width, double height)
public double getLength()
public double getWidth()
public double getHeight()
public double getCirumscribedRadius()
getCirumscribedRadius
in interface Polyhedron
public javax.vecmath.Point3d[] getVertices()
getVertices
in interface Polyhedron
n
- radius
- center
- public java.util.List<int[]> getLineLoops()
getLineLoops
in interface Polyhedron
public int getViewCount()
getViewCount
in interface Polyhedron
public java.lang.String getViewName(int index)
getViewName
in interface Polyhedron
public javax.vecmath.Matrix3d getViewMatrix(int index)
getViewMatrix
in interface Polyhedron