| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| public float | |
| public float | |
| public float |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Vector3f | |
| public static float | |
| public static Vector3f | |
| public static float | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| 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 Vector3f | |
| public Vector3f | |
| 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 Vector3f | |
| 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 Vector3f | |
| public String | |
| public Vector3f | Returns: thisThe translation in x x, float the translation in y y, float z)Translate a vector |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| x | back to summary |
|---|---|
| public float x | |
| y | back to summary |
|---|---|
| public float y | |
| z | back to summary |
|---|---|
| public float z | |
| Vector3f | back to summary |
|---|---|
| public Vector3f() Constructor for Vector3f. | |
| Vector3f | back to summary |
|---|---|
| public Vector3f(ReadableVector3f src) Constructor | |
| Vector3f | back to summary |
|---|---|
| public Vector3f(float x, float y, float z) Constructor | |
| add | back to summary |
|---|---|
| public static Vector3f add(Vector3f left, Vector3f right, Vector3f dest) Add a vector to another vector and place the result in a destination vector. | |
| angle | back to summary |
|---|---|
| public static float angle(Vector3f a, Vector3f b) Calculate the angle between two vectors, in radians | |
| cross | back to summary |
|---|---|
| public static Vector3f cross(Vector3f left, Vector3f right, Vector3f dest) The cross product of two vectors. | |
| dot | back to summary |
|---|---|
| public static float dot(Vector3f left, Vector3f right) The dot product of two vectors is calculated as v1.x * v2.x + v1.y * v2.y + v1.z * v2.z | |
| 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.
| |
| 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 Vector3f negate(Vector3f dest) Negate a vector and place the result in a destination vector. | |
| normalise | back to summary |
|---|---|
| public Vector3f normalise(Vector3f 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 Vector3f set(ReadableVector3f src) Load from another Vector3f
| |
| 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 Vector3f sub(Vector3f left, Vector3f right, Vector3f 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 Vector3f translate(float x, float y, float z) Translate a vector
| |