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 Polyhedronpublic javax.vecmath.Point3d[] getVertices()
getVertices in interface Polyhedronn - radius - center - public List<int[]> getLineLoops()
getLineLoops in interface Polyhedronpublic 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.