public class Octahedron extends Object implements Polyhedron
| Constructor and Description | 
|---|
| Octahedron() | 
| Modifier and Type | Method and Description | 
|---|---|
| javax.vecmath.Point3d | getC2Axis(double scale) | 
| javax.vecmath.Point3d | getC3Axis(double scale) | 
| javax.vecmath.Point3d | getC4Axis(double scale) | 
| 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 octahedron's faces | 
| List<int[]> | getLineLoops() | 
| double | getMidRadius()Returns the radius of a sphere, that is tangent to each
 of the octahedron's edges | 
| 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 | setInscribedRadius(double radius)Sets the radius of an inscribed sphere, that is tangent to each
 of the octahedron's faces | 
| void | setMidRadius(double radius)Sets the radius of radius of a sphere, that is tangent to each
 of the octahedron's edges | 
public Octahedron()
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 javax.vecmath.Point3d[] getVertices()
getVertices in interface Polyhedronn - radius - center - public List<int[]> getLineLoops()
getLineLoops in interface Polyhedronpublic javax.vecmath.Point3d getC4Axis(double scale)
public javax.vecmath.Point3d getC3Axis(double scale)
public javax.vecmath.Point3d getC2Axis(double scale)
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.