|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.java.joglutils.msg.math.Plane
public class Plane
Represents a plane in 3D space.
Constructor Summary | |
---|---|
Plane()
Default constructor initializes normal to (0, 1, 0) and point to (0, 0, 0) |
|
Plane(Vec3f normal,
Vec3f point)
Sets all parameters of plane. |
Method Summary | |
---|---|
Vec3f |
getNormal()
Normal is normalized internally, so normal is not necessarily equal to plane.setNormal(normal);
plane.getNormal(); |
Vec3f |
getPoint()
|
boolean |
intersectRay(Vec3f rayStart,
Vec3f rayDirection,
IntersectionPoint intPt)
Intersect a ray with the plane. |
void |
projectPoint(Vec3f pt,
Vec3f projPt)
Project a point onto the plane |
void |
setNormal(Vec3f normal)
Setter does some work to maintain internal caches. |
void |
setPoint(Vec3f point)
Setter does some work to maintain internal caches |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Plane()
public Plane(Vec3f normal, Vec3f point)
Method Detail |
---|
public void setNormal(Vec3f normal)
public Vec3f getNormal()
plane.setNormal(normal);
plane.getNormal();
public void setPoint(Vec3f point)
public Vec3f getPoint()
public void projectPoint(Vec3f pt, Vec3f projPt)
public boolean intersectRay(Vec3f rayStart, Vec3f rayDirection, IntersectionPoint intPt)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |