|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectvclip.Plane
A plane in space.
| Constructor Summary | |
Plane()
Constructs a Plane with zero normal and offset. |
|
Plane(javax.vecmath.Vector3d normal,
javax.vecmath.Point3d point)
Constructs a Plane based on a normal vector and a point. |
|
| Method Summary | |
double |
distance(javax.vecmath.Point3d point)
Computes a signed distance from a point to this plane, by taking the dot product of the point and the normal, and adding the plane offset. |
javax.vecmath.Vector3d |
getNormal()
Gets the normal of this plane. |
double |
getOffset()
Gets the offset of this plane. |
void |
planeTransform(vclip.Matrix4dX P,
javax.vecmath.Point3d origin)
Returns a 4x4 matrix which maps points into a coordinate system with a specified origin and whose x-y plane is parallel to this plane. |
void |
projectionMatrix(javax.vecmath.Matrix4d P)
Returns a 4x4 matrix which projects points onto this plane. |
void |
set(javax.vecmath.Vector3d normal,
double offset)
Sets this plane based on a normal vector and an offset. |
void |
set(javax.vecmath.Vector3d normal,
javax.vecmath.Point3d point)
Sets this plane based on a normal vector and a point. |
java.lang.String |
toString()
Returns a string representation of this plane. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Plane()
public Plane(javax.vecmath.Vector3d normal,
javax.vecmath.Point3d point)
normal - normal to the plane. This should be of unit length
if distance is to work properlypoint - point on the plane| Method Detail |
public final void set(javax.vecmath.Vector3d normal,
javax.vecmath.Point3d point)
normal - normal to the plane. This should be of unit length
if distance is to work properlypoint - point on the plane
public final void set(javax.vecmath.Vector3d normal,
double offset)
normal - normal to the plane. This should be of unit length
if distance is to work properlyoffset - offset for the planepublic final double distance(javax.vecmath.Point3d point)
point - point to compute the distance frompublic final java.lang.String toString()
public javax.vecmath.Vector3d getNormal()
public double getOffset()
public void projectionMatrix(javax.vecmath.Matrix4d P)
public void planeTransform(vclip.Matrix4dX P,
javax.vecmath.Point3d origin)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||