|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.psychomad.psycholib.j3d.util.UtilTriangleArray
public class UtilTriangleArray
This class allow to realize some mathematical operation on a triangle stored in a TriangleArray structure.
Constructor Summary | |
---|---|
UtilTriangleArray()
|
Method Summary | |
---|---|
static void |
computeNormal(javax.media.j3d.TriangleArray tr,
int index)
Compute the normal of a triangle store in a TriangleArray and update its normal value. |
static float |
getArea(javax.media.j3d.TriangleArray tr,
int index)
Compute the area of the triangle. |
static javax.vecmath.Point3f |
getGPoint(javax.media.j3d.TriangleArray tr,
int index)
Allow to get the G point of a triangle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UtilTriangleArray()
Method Detail |
---|
public static void computeNormal(javax.media.j3d.TriangleArray tr, int index)
tr
- the TriangleArray structure from which we extract a triangle to
compute its normalindex
- index position of the triangle in the TriangleArray structurepublic static javax.vecmath.Point3f getGPoint(javax.media.j3d.TriangleArray tr, int index)
tr
- the TriangleArray structure from which we extract a triangle to
compute its normalindex
- index position of the triangle in the TriangleArray structure
public static float getArea(javax.media.j3d.TriangleArray tr, int index)
tr
- the TriangleArray structure from which we extract a triangle to
compute its normalindex
- index position of the triangle in the TriangleArray structure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |