maspack.geometry
Class Sphere

java.lang.Object
  extended by maspack.geometry.Sphere

public class Sphere
extends java.lang.Object


Constructor Summary
Sphere(double rad, Point3d c)
           
 
Method Summary
 boolean containsPoint(Point3d pnt)
           
 Point3d getCenter()
           
 double getRadius()
           
 boolean intersects(Sphere sphere)
           
 void setCenter(Point3d c)
           
 void setRadius(double rad)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sphere

public Sphere(double rad,
              Point3d c)
Method Detail

getRadius

public double getRadius()

getCenter

public Point3d getCenter()

setCenter

public void setCenter(Point3d c)

setRadius

public void setRadius(double rad)

intersects

public boolean intersects(Sphere sphere)

containsPoint

public boolean containsPoint(Point3d pnt)