public class BoundingSphere
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static BoundingSphere |
boundingBox(java.util.ArrayList<Vertex3D> vertices)
Calculates a bounding sphere for a group of points in
3D space using the bounding box.
|
Vertex3D |
getCenter() |
double |
getRadius() |
void |
toOrigin(java.util.ArrayList<Vertex3D> points)
Shifts points to origin by bounding sphere center.
|
public static BoundingSphere boundingBox(java.util.ArrayList<Vertex3D> vertices)
vertices
- the vertices to build the sphere from.public void toOrigin(java.util.ArrayList<Vertex3D> points)
points
- model vertices.public double getRadius()