|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmali.spatial.bodies.Plane
public final class Plane
A Plane.
| Constructor Summary | |
|---|---|
Plane()
Useless Plane constructor. |
|
Plane(float a,
float b,
float c,
float d)
Plane constructor comment. |
|
Plane(Plane plane)
Plane constructor comment. |
|
Plane(Vector3f normal,
float d)
Plane constructor comment. |
|
| Method Summary | |
|---|---|
float |
distanceTo(float x,
float y,
float z)
Classifies a point with respect to the plane. |
float |
distanceTo(Tuple3f v)
Classifies a point with respect to the plane. |
float |
getA()
|
float |
getB()
|
float |
getC()
|
float |
getD()
|
Vector3f |
getNormal()
|
boolean |
intersects(Plane rkPlane1)
|
boolean |
intersects(Plane rkPlane1,
Line rkLine)
Computes the intersection line between this plane and incoming plane rkPlane1. |
boolean |
intersects(Point3f rayOrigin,
Vector3f rayDirection)
Does a ray intersection test with this. |
boolean |
intersects(Point3f rayOrigin,
Vector3f rayDirection,
Tuple3f intersection)
Does a ray intersection test with this. |
boolean |
intersects(Ray3f ray)
Does a ray intersection test with this. |
boolean |
intersects(Ray3f ray,
Tuple3f intersection)
Does a ray intersection test with this. |
float |
intersectsSegment(Tuple3f va,
Tuple3f vb,
Tuple3f intersection)
|
Plane |
normalize()
Normalizes this plane (i.e. the vector (a,b,c) becomes unit length) This also scales d to compensate. |
float |
rayIntersectionParametric(Point3f rayOrigin,
Vector3f dir,
Tuple3f intersection)
|
float |
rayIntersectionParametric(Ray3f ray,
Tuple3f intersection)
|
void |
readExternal(java.io.ObjectInput in)
readExternal method comment. |
boolean |
segmentIntersection(Point3f from,
Point3f to,
Tuple3f intersect)
|
void |
set(float a,
float b,
float c,
float d)
Insert the method's description here. |
void |
set(Plane plane)
Insert the method's description here. |
void |
setA(float a)
|
void |
setB(float b)
|
void |
setC(float c)
|
void |
setD(float d)
|
void |
setNormal(Vector3f normal)
|
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Plane(float a,
float b,
float c,
float d)
a - b - c - d -
public Plane(Vector3f normal,
float d)
normal - d - public Plane(Plane plane)
plane - public Plane()
| Method Detail |
|---|
public void setNormal(Vector3f normal)
public Vector3f getNormal()
public void setA(float a)
public float getA()
public void setB(float b)
public float getB()
public void setC(float c)
public float getC()
public void setD(float d)
public float getD()
public float distanceTo(float x,
float y,
float z)
public float distanceTo(Tuple3f v)
public boolean intersects(Plane rkPlane1,
Line rkLine)
public float rayIntersectionParametric(Point3f rayOrigin,
Vector3f dir,
Tuple3f intersection)
rayOrigin - dir - intersection -
public float rayIntersectionParametric(Ray3f ray,
Tuple3f intersection)
ray - intersection -
public boolean intersects(Point3f rayOrigin,
Vector3f rayDirection,
Tuple3f intersection)
this.
rayOrigin - rayDirection - intersection -
public boolean intersects(Ray3f ray,
Tuple3f intersection)
this.
ray - intersection -
public boolean intersects(Point3f rayOrigin,
Vector3f rayDirection)
this.
rayOrigin - rayDirection -
public boolean intersects(Ray3f ray)
this.
ray -
public boolean segmentIntersection(Point3f from,
Point3f to,
Tuple3f intersect)
public float intersectsSegment(Tuple3f va,
Tuple3f vb,
Tuple3f intersection)
public boolean intersects(Plane rkPlane1)
public Plane normalize()
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object
public void set(float a,
float b,
float c,
float d)
public void set(Plane plane)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||