| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| public float | |
| public float |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Vector2f | |
| public static float | |
| 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 | Returns: the length squared of the vectorImplements abstract org. Implements org. |
| public Vector | Returns: thisThe buffer to load it from, at the current position buf)Implements abstract org. |
| public Vector | |
| public Vector2f | |
| public Vector2f | |
| public Vector | scale(float
The scale factor scale)Implements abstract org. |
| public void | |
| public Vector2f | |
| public final void | |
| public final void | |
| public Vector | Returns: thisThe buffer to store it in, at the current position buf)Implements abstract org. Implements org. |
| public static Vector2f | |
| public String | |
| public Vector2f |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| x | back to summary |
|---|---|
| public float x | |
| y | back to summary |
|---|---|
| public float y | |
| Vector2f | back to summary |
|---|---|
| public Vector2f() Constructor for Vector3f. | |
| Vector2f | back to summary |
|---|---|
| public Vector2f(ReadableVector2f src) Constructor | |
| Vector2f | back to summary |
|---|---|
| public Vector2f(float x, float y) Constructor | |
| add | back to summary |
|---|---|
| public static Vector2f add(Vector2f left, Vector2f right, Vector2f dest) Add a vector to another vector and place the result in a destination vector. | |
| angle | back to summary |
|---|---|
| public static float angle(Vector2f a, Vector2f b) Calculate the angle between two vectors, in radians | |
| dot | back to summary |
|---|---|
| public static float dot(Vector2f left, Vector2f 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.
| |
| lengthSquared | back to summary |
|---|---|
| public float lengthSquared() Implements abstract org. Implements org.
| |
| load | back to summary |
|---|---|
| public Vector load(FloatBuffer buf) Implements abstract 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 Vector2f negate(Vector2f dest) Negate a vector and place the result in a destination vector. | |
| normalise | back to summary |
|---|---|
| public Vector2f normalise(Vector2f 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 Vector2f set(ReadableVector2f src) Load from another Vector2f
| |
| 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 | |
| store | back to summary |
|---|---|
| public Vector store(FloatBuffer buf) Implements abstract org. Implements org. Store this vector in a FloatBuffer
| |
| sub | back to summary |
|---|---|
| public static Vector2f sub(Vector2f left, Vector2f right, Vector2f 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 Vector2f translate(float x, float y) Translate a vector
| |