|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgnu.util.Vector3f
public class Vector3f
3-element vector of float
in mathematics.
Field Summary | |
---|---|
float[] |
v
|
static Vector3f |
ZERO
|
Constructor Summary | |
---|---|
Vector3f()
|
|
Vector3f(float[] v)
|
|
Vector3f(float x,
float y,
float z,
float w)
|
Method Summary | |
---|---|
static float[] |
cross(float[] A,
float[] B,
float[] C)
C = A x B . |
Vector3f |
cross(Vector3f A,
Vector3f B)
|
float |
length_square()
|
static float |
length_square(float[] A)
|A| = x*x + y*y + z*z . |
float |
length()
|
static float |
length(float[] A)
|
static float[] |
minus(float[] A,
float[] B,
float[] C)
C = A - B . |
Vector3f |
minus(Vector3f A,
Vector3f B)
|
Vector3f |
negate()
|
static float[] |
negate(float[] A,
float[] B)
B = -A . |
Vector3f |
negate(Vector3f A)
|
Vector3f |
normalize()
|
static float[] |
normalize(float[] A,
float[] B)
B = A / |A| . |
Vector3f |
normalize(Vector3f A)
|
static float[] |
scalar_addition(float[] A,
float d,
float[] B)
B = A + (a * I) . |
Vector3f |
scalar_divide(float d)
|
static float[] |
scalar_divide(float[] A,
float d,
float[] B)
B = (1/d) * A . |
Vector3f |
scalar_divide(Vector3f A,
float d)
|
Vector3f |
scalar_minus(float d)
|
static float[] |
scalar_minus(float[] A,
float d,
float[] B)
B = A - (a * I) . |
Vector3f |
scalar_minus(Vector3f A,
float d)
|
Vector3f |
scalar_multiply(float d)
|
static float[] |
scalar_multiply(float[] A,
float d,
float[] B)
B = d * A . |
Vector3f |
scalar_multiply(Vector3f A,
float d)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Vector3f ZERO
public float[] v
Constructor Detail |
---|
public Vector3f()
public Vector3f(float[] v)
public Vector3f(float x, float y, float z, float w)
Method Detail |
---|
public static float[] cross(float[] A, float[] B, float[] C)
C = A x B
.
public Vector3f cross(Vector3f A, Vector3f B)
public float length()
public static float length(float[] A)
public float length_square()
public static float length_square(float[] A)
|A| = x*x + y*y + z*z
.
public Vector3f minus(Vector3f A, Vector3f B)
public static float[] minus(float[] A, float[] B, float[] C)
C = A - B
.
public Vector3f negate()
public Vector3f negate(Vector3f A)
public static float[] negate(float[] A, float[] B)
B = -A
.
public Vector3f normalize()
public Vector3f normalize(Vector3f A)
public static float[] normalize(float[] A, float[] B)
B = A / |A|
.
public static float[] scalar_addition(float[] A, float d, float[] B)
B = A + (a * I)
.
public Vector3f scalar_divide(float d)
public Vector3f scalar_divide(Vector3f A, float d)
public static float[] scalar_divide(float[] A, float d, float[] B)
B = (1/d) * A
.
public Vector3f scalar_minus(float d)
public Vector3f scalar_minus(Vector3f A, float d)
public static float[] scalar_minus(float[] A, float d, float[] B)
B = A - (a * I)
.
public Vector3f scalar_multiply(float d)
public Vector3f scalar_multiply(Vector3f A, float d)
public static float[] scalar_multiply(float[] A, float d, float[] B)
B = d * A
.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |