Example usage for Java com.badlogic.gdx.math Vector3 fields, constructors, methods, implement or subclass
The text is from its open source code.
Vector3(float x, float y, float z) Creates a vector with the given components | |
Vector3() Constructs a vector at (0,0,0) | |
Vector3(final Vector3 vector) Creates a vector from the given vector | |
Vector3(final float[] values) Creates a vector from the given array. | |
Vector3(final Vector2 vector, float z) Creates a vector from the given vector and z-component |
Vector3 | add(final Vector3 vector) |
Vector3 | add(float values) Adds the given value to all three components of the vector. |
Vector3 | clamp(float min, float max) |
Vector3 | cpy() |
Vector3 | crs(final Vector3 vector) Sets this vector to the cross product between it and the other vector. |
float | dot(final Vector3 vector) |
float | dot(float x, float y, float z) Returns the dot product between this and the given vector. |
float | dst(final Vector3 vector) |
float | dst2(float x, float y, float z) Returns the squared distance between this point and the given point |
float | dst2(Vector3 point) |
boolean | equals(Object obj) |
boolean | isZero(final float margin) |
boolean | isZero() |
float | len() |
float | len2() |
Vector3 | mul(final Matrix4 matrix) Left-multiplies the vector by the given matrix, assuming the fourth (w) component of the vector is 1. |
Vector3 | mul(Matrix3 matrix) Left-multiplies the vector by the given matrix. |
Vector3 | mul(final Quaternion quat) Multiplies the vector by the given Quaternion . |
Vector3 | mulAdd(Vector3 vec, float scalar) |
Vector3 | mulAdd(Vector3 vec, Vector3 mulVec) |
Vector3 | nor() |
Vector3 | prj(final Matrix4 matrix) Multiplies this vector by the given matrix dividing by w, assuming the fourth (w) component of the vector is 1. |
Vector3 | rot(final Matrix4 matrix) Multiplies this vector by the first three columns of the matrix, essentially only applying rotation and scaling. |
Vector3 | rotate(final Vector3 axis, float degrees) Rotates this vector by the given angle in degrees around the given axis. |
Vector3 | scl(float scalar) |
Vector3 | scl(final Vector3 other) |
Vector3 | set(float x, float y, float z) Sets the vector to the given components |
Vector3 | set(final Vector3 vector) |
Vector3 | set(final float[] values) Sets the components from the array. |
Vector3 | sub(final Vector3 a_vec) |
Vector3 | sub(float value) Subtracts the given value from all components of this vector |
String | toString() |