|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.sdsc.mbt.viewers.GLViewerImpl.Trihedron
Holds a moving trihedron normalized three-tuple of vectors that represents the basis vectors that define a coordinate system. The tangent represents the direction of a curve, the normal represents the direction of the plane in which the tangen lies, and the binormal is the cross-product of the tangent and normal vectors.
Constructor Summary | |
Trihedron()
Primary Constructor. |
|
Trihedron(float[] tan,
float[] norm)
Primary Constructor. |
Method Summary | |
float[] |
getBinormal()
Get the binormal vector. |
float[] |
getNormal()
Get the normal vector. |
float[] |
getTangent()
Get the tangent vector. |
void |
set(float[] tan,
float[] norm)
Set the tangent and normal vectors. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Trihedron()
public Trihedron(float[] tan, float[] norm)
Method Detail |
public void set(float[] tan, float[] norm)
tan
- The x,y,z distances defining the tangent vector.norm
- The x,y,z distances defining the normal vector.
java.lang.NullPointerException
- for null vector.
java.lang.IllegalArgumentException
- for zero vector.public float[] getTangent()
java.lang.NullPointerException
- for null vector.
java.lang.IllegalArgumentException
- for zero vector.public float[] getNormal()
java.lang.NullPointerException
- for null vector.
java.lang.IllegalArgumentException
- for zero vector.public float[] getBinormal()
java.lang.NullPointerException
- for null vector.
java.lang.IllegalArgumentException
- for zero vector.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |