|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--gumbo.graphic.math.Plane3
A 3D spatial element representing a plane of infinite extent, which is defined by a normal vector and a (possibly negative) distance from the origin along the vector. A plane, as defined here, has an inside (back side) and an outside (front side), with the outside (front side) being in the direction of the normal.
| Constructor Summary | |
Plane3()
Creates an instance, with zero distance, and a default unit vector normal. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
|
double |
getDistance()
Gets the distance from the origin to this plane. |
java.lang.Object |
getGraphic()
Default implementation: Returns this (non-native implementation). |
SpaceNode |
getGraphicLocalSpace()
Default implementation: Returns null (absolute reference space). |
UnitVector3 |
getNormal()
Gets an immutable view of the normal vector for this plane. |
Plane3 |
getPlane3()
Gets a singleton immutable view of this object with the same identity (hashCode(), equals()) as this object. |
Plane3 |
setDistance(double dist)
Sets the distance from the origin to this plane along its normal vector. |
Plane3 |
setNormal(UnitVector3 vector)
Sets the normal vector for this plane. |
java.lang.String |
toString()
|
void |
transformGraphic(Matrix4 matrix)
Default implementation: Uses setPosition() and setDirection() for subclass compatibility. |
void |
transformGraphic(SpaceNode from,
SpaceNode to)
Default implementation: Uses setPosition() and setDirection() for subclass compatibility. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Plane3()
| Method Detail |
public Plane3 setDistance(double dist)
public Plane3 setNormal(UnitVector3 vector)
public double getDistance()
public UnitVector3 getNormal()
public Plane3 getPlane3()
public void transformGraphic(SpaceNode from,
SpaceNode to)
transformGraphic in interface TransformableGraphicfrom - The current reference space. Never null.to - The new reference space. Never null.public void transformGraphic(Matrix4 matrix)
transformGraphic in interface TransformableGraphicmatrix - Value of the transform matrix. Never null.public SpaceNode getGraphicLocalSpace()
getGraphicLocalSpace in interface GraphicGeometrypublic java.lang.Object getGraphic()
getGraphic in interface Graphicpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||