|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectShape
Plane
public class Plane
A class representing a plane. A plane is specified by a point and a normal.
Constructor Summary | |
---|---|
Plane()
|
|
Plane(javax.vecmath.Point3d point,
javax.vecmath.Vector3d normal)
Constructs a plane from a point and the plane's normal. |
|
Plane(javax.vecmath.Point3d point,
javax.vecmath.Vector3d v1,
javax.vecmath.Vector3d v2)
Constructs a plane from a point and two vectors laying in the plane. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a copy of the object. |
boolean |
contains(javax.vecmath.Point3d point)
Determines if a point is contained on the plane. |
void |
createPlaneFromVectors(javax.vecmath.Point3d point,
javax.vecmath.Vector3d v1,
javax.vecmath.Vector3d v2)
Constructs a plane from a point and two vectors laying in the plane. |
javax.vecmath.Vector3d |
getNormal()
Returns the plane's normal. |
javax.vecmath.Point3d |
getPoint()
Returns the point on the plane. |
double |
nearestIntersectionTime(Ray3d ray)
Gets the nearest intersection time between the specified ray and the shape. |
void |
setNormal(javax.vecmath.Vector3d normal)
Sets the plane's normal. |
void |
setPoint(javax.vecmath.Point3d point)
Sets the point on the plane. |
javax.vecmath.Vector3d |
surfaceNormal(javax.vecmath.Point3d point)
Gets the surface normal at the specified point on the shape. |
Methods inherited from class Shape |
---|
getSurfaceProperties, load, setSurfaceProperties |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Plane()
public Plane(javax.vecmath.Point3d point, javax.vecmath.Vector3d normal)
point
- A point on the plane.normal
- The plane's normal.public Plane(javax.vecmath.Point3d point, javax.vecmath.Vector3d v1, javax.vecmath.Vector3d v2)
point
- A point on the plane.v1
- A vector on the plane.v2
- A vector on the plane.Method Detail |
---|
public java.lang.Object clone()
CloneableEx
clone
in interface CloneableEx
clone
in class Shape
public void createPlaneFromVectors(javax.vecmath.Point3d point, javax.vecmath.Vector3d v1, javax.vecmath.Vector3d v2)
point
- A point on the plane.v1
- A vector on the plane.v2
- A vector on the plane.public boolean contains(javax.vecmath.Point3d point)
point
- The point to test.
true
if the point is on the plane, otherwise false
.public double nearestIntersectionTime(Ray3d ray)
Shape
nearestIntersectionTime
in class Shape
ray
- The ray to intersect with the shape.
public javax.vecmath.Vector3d surfaceNormal(javax.vecmath.Point3d point)
Shape
surfaceNormal
in class Shape
point
- The point on the surface of the shape.
public void setPoint(javax.vecmath.Point3d point)
point
- The point to set.public javax.vecmath.Point3d getPoint()
public void setNormal(javax.vecmath.Vector3d normal)
normal
- The normal to set.public javax.vecmath.Vector3d getNormal()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |