| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| public float | |
| public float | |
| public float | |
| public float |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Vector4f | |
| public static float | |
| public static float | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public float | |
| public final float | |
| public final float | |
| public float | |
| public float | Returns: the length squared of the vectorImplements abstract org. Implements org. |
| public Vector | load(FloatBuffer
The buffer to load it from, at the current position buf)Implements abstract org. |
| public Vector | |
| public Vector4f | |
| public Vector4f | |
| public Vector | scale(float
The scale factor scale)Implements abstract org. |
| public void | |
| public void | set(float x, float y, float z)
Implements org. |
| public void | set(float x, float y, float z, float w)
Implements org. |
| public Vector4f | |
| public void | |
| public final void | |
| public final void | |
| public void | |
| public Vector | store(FloatBuffer
The buffer to store it in, at the current position buf)Implements abstract org. Implements org. |
| public static Vector4f | |
| public String | |
| public Vector4f | Returns: thisThe translation in x x, float the translation in y y, float z, float w)Translate a vector |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| w | back to summary |
|---|---|
| public float w | |
| x | back to summary |
|---|---|
| public float x | |
| y | back to summary |
|---|---|
| public float y | |
| z | back to summary |
|---|---|
| public float z | |
| Vector4f | back to summary |
|---|---|
| public Vector4f() Constructor for Vector4f. | |
| Vector4f | back to summary |
|---|---|
| public Vector4f(ReadableVector4f src) Constructor | |
| Vector4f | back to summary |
|---|---|
| public Vector4f(float x, float y, float z, float w) Constructor | |
| add | back to summary |
|---|---|
| public static Vector4f add(Vector4f left, Vector4f right, Vector4f dest) Add a vector to another vector and place the result in a destination vector. | |
| angle | back to summary |
|---|---|
| public static float angle(Vector4f a, Vector4f b) Calculate the angle between two vectors, in radians | |
| dot | back to summary |
|---|---|
| public static float dot(Vector4f left, Vector4f right) The dot product of two vectors is calculated as v1.x * v2.x + v1.y * v2.y + v1.z * v2.z + v1.w * v2.w | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getW | back to summary |
|---|---|
| public float getW() Implements org.
| |
| getX | back to summary |
|---|---|
| public final float getX() Implements org.
| |
| getY | back to summary |
|---|---|
| public final float getY() Implements org.
| |
| getZ | back to summary |
|---|---|
| public float getZ() Implements org.
| |
| lengthSquared | back to summary |
|---|---|
| public float lengthSquared() Implements abstract org. Implements org.
| |
| load | back to summary |
|---|---|
| public Vector load(FloatBuffer buf) Implements abstract org. Doc from org. Load this vector from a FloatBuffer
| |
| negate | back to summary |
|---|---|
| public Vector negate() Implements abstract org. Negate a vector
| |
| negate | back to summary |
|---|---|
| public Vector4f negate(Vector4f dest) Negate a vector and place the result in a destination vector. | |
| normalise | back to summary |
|---|---|
| public Vector4f normalise(Vector4f dest) Normalise this vector and place the result in another vector. | |
| scale | back to summary |
|---|---|
| public Vector scale(float scale) Implements abstract org. Doc from org. Scale this vector
| |
| set | back to summary |
|---|---|
| public void set(float x, float y) Implements org. Doc from org. Set the X,Y values | |
| set | back to summary |
|---|---|
| public void set(float x, float y, float z) Implements org. Doc from org. Set the X,Y,Z values | |
| set | back to summary |
|---|---|
| public void set(float x, float y, float z, float w) Implements org. Doc from org. Set the X,Y,Z,W values | |
| set | back to summary |
|---|---|
| public Vector4f set(ReadableVector4f src) Load from another Vector4f
| |
| setW | back to summary |
|---|---|
| public void setW(float w) Implements org. Set W | |
| setX | back to summary |
|---|---|
| public final void setX(float x) Implements org. Set X | |
| setY | back to summary |
|---|---|
| public final void setY(float y) Implements org. Set Y | |
| setZ | back to summary |
|---|---|
| public void setZ(float z) Implements org. Set Z | |
| store | back to summary |
|---|---|
| public Vector store(FloatBuffer buf) Implements abstract org. Implements org. Doc from org. Store this vector in a FloatBuffer
| |
| sub | back to summary |
|---|---|
| public static Vector4f sub(Vector4f left, Vector4f right, Vector4f dest) Subtract a vector from another vector and place the result in a destination vector. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| translate | back to summary |
|---|---|
| public Vector4f translate(float x, float y, float z, float w) Translate a vector
| |