public class RectangularPrism extends 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
|
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) |
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 List<int[]> getLineLoops()
getLineLoops
in interface Polyhedron
public int getViewCount()
getViewCount
in interface Polyhedron
public String getViewName(int index)
getViewName
in interface Polyhedron
public javax.vecmath.Matrix3d getViewMatrix(int index)
getViewMatrix
in interface Polyhedron
Copyright © 2000–2019 BioJava. All rights reserved.