|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectframs_client_3d.VectorMath
Class of functions for vectors manipulation.
| Constructor Summary | |
VectorMath()
|
|
| Method Summary | |
float |
length(float[] vector)
Calculates the length of a vector. |
float[] |
normalize(float[] vector)
Normalize a vector. |
float[] |
rotate(float angle,
float[] axis,
float[] vector)
Rotates a vector around an axis about an angle. |
float |
scalarProduct(float[] v1,
float[] v2)
Calculates the dot product of two vectors. |
float[] |
vector(float[] p1,
float[] p2)
Calculates coordiantes of a vector between two points. |
float[] |
vectorProduct(float[] v1,
float[] v2)
Calculates the cross product of two vectors. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VectorMath()
| Method Detail |
public float[] vector(float[] p1,
float[] p2)
p1 - p2 -
public float[] rotate(float angle,
float[] axis,
float[] vector)
angle - axis - vector -
public float[] vectorProduct(float[] v1,
float[] v2)
v1 - first vectorv2 - second vector
public float[] normalize(float[] vector)
vector -
public float length(float[] vector)
vector -
public float scalarProduct(float[] v1,
float[] v2)
v1 - first vectorv2 - second vector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||