|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsynergynetframework.jme.gfx.JMEGfxUtils
public class JMEGfxUtils
The Class JMEGfxUtils.
Constructor Summary | |
---|---|
JMEGfxUtils()
|
Method Summary | |
---|---|
static float |
distance(float x1,
float x2,
float y1,
float y2)
Distance. |
static com.jme.math.Vector3f |
getCursorWoldCoorinatesOnPlane(com.jme.math.Vector2f cursorScreen,
com.jme.scene.Spatial s,
com.jme.math.Plane p)
Gets the cursor wold coorinates on plane. |
static com.jme.math.Vector3f |
getCursorWorldCoordinatesOnSpatialPlane(com.jme.math.Vector2f cursorScreen,
com.jme.scene.Spatial s)
Gets the cursor world coordinates on spatial plane. |
static com.jme.math.Vector3f[] |
getWorldVertices(com.jme.scene.TriMesh m,
int triangleIndex)
Gets an array of the three vertices representing the triangle of the supplied mesh with the given triangle index, in WORLD coordinates. |
static com.jme.math.Vector2f |
tableToScreen3f(java.awt.geom.Point2D.Float position)
Table to screen3f. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JMEGfxUtils()
Method Detail |
---|
public static float distance(float x1, float x2, float y1, float y2)
x1
- the x1x2
- the x2y1
- the y1y2
- the y2
public static com.jme.math.Vector3f getCursorWoldCoorinatesOnPlane(com.jme.math.Vector2f cursorScreen, com.jme.scene.Spatial s, com.jme.math.Plane p)
cursorScreen
- the cursor screens
- the sp
- the p
public static com.jme.math.Vector3f getCursorWorldCoordinatesOnSpatialPlane(com.jme.math.Vector2f cursorScreen, com.jme.scene.Spatial s)
cursorScreen
- the cursor screens
- the s
public static com.jme.math.Vector3f[] getWorldVertices(com.jme.scene.TriMesh m, int triangleIndex)
m
- the mtriangleIndex
- the triangle index
public static com.jme.math.Vector2f tableToScreen3f(java.awt.geom.Point2D.Float position)
position
- the position
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |