|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.javagl.swogl.IntersectionInfo
public final class IntersectionInfo
This class summarizes information about the intersection between
a Ray
and a SwoglComponent
. Instances of this
class may be obtained from
SwoglContainer.computeIntersectionInfos(java.awt.Point)
.
Method Summary | |
---|---|
javax.vecmath.Point3f |
computeIntersectionPosition()
Compute the position where the intersection happened, in the local coordinate system of the SwoglComponent, and return it as a Point. |
PickingInfo |
createPickingInfo()
Returns the PickingInfo for the intersection described
by this IntersectionInfo |
javax.vecmath.Point3f |
getBaryCoords()
Returns a copy of the barycentric coordinates where the triangle was intersected. |
float |
getDistance()
Returns the distance of the intersection from the ray origin |
SwoglComponent |
getSwoglComponent()
Returns the SwoglComponent that was intersected |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public SwoglComponent getSwoglComponent()
public float getDistance()
public javax.vecmath.Point3f getBaryCoords()
public javax.vecmath.Point3f computeIntersectionPosition()
public PickingInfo createPickingInfo()
PickingInfo
for the intersection described
by this IntersectionInfo
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |