Package javaforce.gl
Class Vector3
java.lang.Object
javaforce.gl.Vector3
Stores one vector (x,y,z).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
v
public float[] v
-
-
Constructor Details
-
Vector3
public Vector3() -
Vector3
public Vector3(float x, float y, float z)
-
-
Method Details
-
set
public void set(float x, float y, float z) -
set
-
set
-
add
this = a + b -
add
this += a -
sub
this = a - b -
sub
this -= a -
cross
this = a X b -
normalize
public void normalize()normalize this vector -
length
public float length() -
lengthSquared
public float lengthSquared() -
scale
public void scale(float s) -
divide
public void divide(float d) -
dot
-
length
-
toString
-