|
BenQ Mobile |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.m3g.RayIntersection
A RayIntersection object is filled in by the pick methods in Group. RayIntersection stores a reference to the intersected Mesh or Sprite3D and information about the intersection point. RayIntersection is strictly a run-time object; it cannot be loaded from a file by Loader.
Constructor Summary | |
RayIntersection()
Constructs a new RayIntersection object with default values. |
Method Summary | |
float |
getDistance()
Retrieves the distance from the pick ray origin to the intersection point. |
Node |
getIntersected()
Retrieves the picked Mesh or Sprite3D object. |
float |
getNormalX()
Retrieves the X component of the surface normal at the intersection point. |
float |
getNormalY()
Retrieves the Y component of the surface normal at the intersection point. |
float |
getNormalZ()
Retrieves the Z component of the surface normal at the intersection point. |
void |
getRay(float[] ray)
Retrieves the origin (ox oy oz) and direction (dx dy dz) of the pick ray, in that order. |
int |
getSubmeshIndex()
Retrieves the index of the submesh where the intersection point is located within the intersected Mesh. |
float |
getTextureS(int index)
Retrieves the S texture coordinate at the intersection point on the picked Mesh or Sprite3D. |
float |
getTextureT(int index)
Retrieves the T texture coordinate at the intersection point on the picked Mesh or Sprite3D. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RayIntersection()
Method Detail |
public Node getIntersected()
public void getRay(float[] ray)
public float getDistance()
public int getSubmeshIndex()
public float getTextureS(int index)
public float getTextureT(int index)
public float getNormalX()
public float getNormalY()
public float getNormalZ()
|
BenQ Mobile |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2006 BenQ Mobile GmbH & Co. OHG or respective copyright owner. All Rights Reserved. BenQ Corp. is a trademark licensee of Siemens AG. |
For further information about Mobility Toolkit (MTK) visit our Developer Portal. |