Constructor and Description |
---|
Tetrahedron(Point[] corners) |
Tetrahedron(Point p1,
Point p2,
Point p3,
Point p4) |
Modifier and Type | Method and Description |
---|---|
void |
blowUp(double t) |
Point |
circumCenter()
Find the center of the circumscribing sphere.
|
double |
circumRadius()
Calculate the radius of the circumsphere.
|
Sphere |
circumSphere()
Find the circumscribing sphere
|
Volume |
clone()
Make a deep clone this volume.
|
Point |
getCenter()
Get the geometric center of the shape.
|
Triangle |
getCommonTriangle(Tetrahedron t)
Return common triangle of 2 tetrahedra
|
Point |
getCorner(int c)
Return the specified corner.
|
Point[] |
getCorners()
Return all four corners
|
int |
getDimension()
Return the 'dimension' of this object.
|
double |
getInradius()
Calculate the radius of the insphere.
|
Point |
getPoint(int c)
Return the specified corner-point.
|
double |
getVolume()
Get the volume of the tetrahedron.
|
Point |
incenter()
Find the center of the inscribed sphere.
|
boolean |
isAcute() |
boolean |
isInside(Point p)
Returns true if the point p is inside this tetrahedron.
|
static void |
main(java.lang.String[] args) |
boolean |
overlaps(Volume vol)
Determine if this volume overlaps vol.
|
static Tetrahedron |
regularTetrahedron() |
void |
setPoint(int c,
Point point)
TODO: Comment
|
void |
toConsole()
Writes this tetrahedron to
System.out . |
void |
toConsole(int dec)
Writes this tetrahedron to
System.out with dec decimals precision. |
java.lang.String |
toString()
Return a string representation of this tetrahedron.
|
java.lang.String |
toString(int dec)
Return a string representation of this tetrahedron with
dec decimals precision |
void |
translate(double x,
double y,
double z) |
void |
translate(Point q) |
void |
translate(Vector v) |
protected Point[] corners
public Tetrahedron(Point[] corners)
public static Tetrahedron regularTetrahedron()
public Point getCorner(int c)
c<0 || c>3
.public Point[] getCorners()
public void translate(Vector v)
public void translate(Point q)
public void translate(double x, double y, double z)
public void blowUp(double t)
public Point getPoint(int c)
c<0 || c>3
.public int getDimension()
getDimension
in interface Simplex
public void setPoint(int c, Point point)
public boolean overlaps(Volume vol)
Volume
public double getVolume()
public Triangle getCommonTriangle(Tetrahedron t)
public double getInradius()
public double circumRadius()
public Point circumCenter()
public Sphere circumSphere()
public Point incenter()
public Point getCenter()
Shape
public boolean isInside(Point p)
public boolean isAcute()
public Volume clone()
Volume
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(int dec)
dec
decimals precisionpublic void toConsole()
System.out
.public void toConsole(int dec)
System.out
with dec
decimals precision.public static void main(java.lang.String[] args)