|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectProGAL.geom3d.volumes.Tetrahedron
public class Tetrahedron
A tetrahedron is a polyhedron with four triangular faces. It is defined using four corner-points.
| Constructor Summary | |
|---|---|
Tetrahedron(Point[] corners)
|
|
Tetrahedron(Point p1,
Point p2,
Point p3,
Point p4)
|
|
| Method Summary | |
|---|---|
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. |
void |
toScene(J3DScene scene)
|
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)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Tetrahedron(Point p1,
Point p2,
Point p3,
Point p4)
public Tetrahedron(Point[] corners)
| Method Detail |
|---|
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.
getPoint in interface Simplexpublic int getDimension()
getDimension in interface Simplex
public void setPoint(int c,
Point point)
public boolean overlaps(Volume vol)
Volume
overlaps in interface Volumepublic double getVolume()
getVolume in interface Volumepublic Triangle getCommonTriangle(Tetrahedron t)
public double getInradius()
public double circumRadius()
public Point circumCenter()
public Sphere circumSphere()
public Point incenter()
public Point getCenter()
Shape
getCenter in interface Shapepublic boolean isInside(Point p)
public boolean isAcute()
public Volume clone()
Volume
clone in interface Volumeclone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(int dec)
dec decimals precision
public void toConsole()
System.out.
public void toConsole(int dec)
System.out with dec decimals precision.
public void toScene(J3DScene scene)
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||