|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectEigenMeat.EigenMaze.Plane
Helper class for various triangle-based algorithms.
| Constructor Summary | |
Plane()
Default constructor. |
|
Plane(float a,
float b,
float c,
float d)
Constructor that allows setting of the plane variables (Ax+By+Cz+D=0) |
|
Plane(Vect3d normal,
float distance)
Constructor. |
|
Plane(Vect3d normal,
Vect3d point)
|
|
| Method Summary | |
boolean |
doesLineIntersect(Vect3d p1,
Vect3d p2)
|
float |
getA()
Get the A component. |
float |
getB()
Get the B component. |
float |
getC()
Get the C component. |
Vect3d |
getNormal()
Returns the plane's normal. |
float |
getPlaneDistance()
Returns the plane distance. |
float |
getPointDistance(Vect3d point)
|
boolean |
isPointInFront(float x,
float y,
float z)
Checks to see if a point is in front of the plane/ |
boolean |
isPointInFront(Vect3d point)
Checks to see if a point is in front of the plane. |
void |
normalize()
Normalize the plane. |
void |
set(float a,
float b,
float c,
float d)
Sets the planes variables after Plane object is created. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Plane()
public Plane(float a,
float b,
float c,
float d)
a - Ab - Bc - Cd - D
public Plane(Vect3d normal,
float distance)
normal - plane normaldistance - plane distance
public Plane(Vect3d normal,
Vect3d point)
| Method Detail |
public void set(float a,
float b,
float c,
float d)
a - Ab - Bc - Cd - Dpublic float getA()
public float getB()
public float getC()
public float getPlaneDistance()
public Vect3d getNormal()
public float getPointDistance(Vect3d point)
public void normalize()
public boolean isPointInFront(Vect3d point)
point - the point
public boolean isPointInFront(float x,
float y,
float z)
x - x coordinatey - y coordinatez - z coordinate
public boolean doesLineIntersect(Vect3d p1,
Vect3d p2)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||