|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.graphic.math.Plane3 | +--gumbo.graphic.math.Polygon3 | +--gumbo.graphic.math.Polygon3.Immutable
Nested Class Summary |
Nested classes inherited from class gumbo.graphic.math.Polygon3 |
Polygon3.Immutable |
Constructor Summary | |
Polygon3.Immutable(Polygon3 target)
|
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. |
Polygon3 |
getPolygon3()
Gets a singleton immutable view of this object with the same identity (hashCode(), equals()) as this object. |
int |
hashCode()
|
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, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Polygon3.Immutable(Polygon3 target)
Method Detail |
public Polygon3 getPolygon3()
Polygon3
getPolygon3
in class Polygon3
public Plane3 setDistance(double dist)
Plane3
setDistance
in class Plane3
public Plane3 setNormal(UnitVector3 vector)
Plane3
setNormal
in class Plane3
public double getDistance()
Plane3
getDistance
in class Plane3
public UnitVector3 getNormal()
Plane3
getNormal
in class Plane3
public Plane3 getPlane3()
Plane3
getPlane3
in class Plane3
public void transformGraphic(SpaceNode from, SpaceNode to)
Plane3
transformGraphic
in interface TransformableGraphic
transformGraphic
in class Plane3
from
- The current reference space. Never null.to
- The new reference space. Never null.public void transformGraphic(Matrix4 matrix)
Plane3
transformGraphic
in interface TransformableGraphic
transformGraphic
in class Plane3
matrix
- Value of the transform matrix. Never null.public SpaceNode getGraphicLocalSpace()
Plane3
getGraphicLocalSpace
in interface GraphicGeometry
getGraphicLocalSpace
in class Plane3
public java.lang.Object getGraphic()
Plane3
getGraphic
in interface Graphic
getGraphic
in class Plane3
public java.lang.String toString()
toString
in class Plane3
public boolean equals(java.lang.Object obj)
equals
in class Polygon3
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |