public class Torus
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Point |
center |
protected Vector |
normal |
protected double |
r |
protected double |
R |
Constructor and Description |
---|
Torus(Point center,
Vector normal,
double majorRadius,
double minorRadius) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Point q)
Returns TRUE if point q is in the interior of the torus
|
Point |
getCenter() |
Point[] |
getIntersectionCircle(Circle C)
Find up to four intersection points with circle C(p,n).
|
Circle |
getMainCircle() |
Plane |
getMainPlane() |
double |
getMajorRadius() |
double |
getMinorRadius() |
Vector |
getNormal() |
Circle |
getPoloidalCircle() |
double |
getSurfaceArea() |
Circle |
getSweepingCircle() |
Sphere |
getSweepingSphere() |
Circle |
getToroidalCircle() |
Circle[] |
getVillarceauCircles()
Two circles of major radius R, tilted to the center plane
by slopes of r/R and -r/R and offset from the center by minor radius distance r
|
double |
getVolume() |
protected Point center
protected Vector normal
protected double R
protected double r
public boolean contains(Point q)
public Circle getMainCircle()
public Plane getMainPlane()
public Circle getPoloidalCircle()
public Circle getSweepingCircle()
public Sphere getSweepingSphere()
public double getSurfaceArea()
public Circle getToroidalCircle()
public double getVolume()
public Circle[] getVillarceauCircles()
public double getMajorRadius()
public double getMinorRadius()
public Vector getNormal()
public Point getCenter()