Package | Description |
---|---|
org.lwjgl.util.vector |
Modifier and Type | Method and Description |
---|---|
static Vector4f |
Vector4f.add(Vector4f left,
Vector4f right,
Vector4f dest)
Add a vector to another vector and place the result in a destination
vector.
|
Vector4f |
Vector4f.negate(Vector4f dest)
Negate a vector and place the result in a destination vector.
|
Vector4f |
Vector4f.normalise(Vector4f dest)
Normalise this vector and place the result in another vector.
|
Vector4f |
Vector4f.set(ReadableVector4f src)
Load from another Vector4f
|
static Vector4f |
Vector4f.sub(Vector4f left,
Vector4f right,
Vector4f dest)
Subtract a vector from another vector and place the result in a destination
vector.
|
static Vector4f |
Matrix4f.transform(Matrix4f left,
Vector4f right,
Vector4f dest)
Transform a Vector by a matrix and return the result in a destination
vector.
|
Vector4f |
Vector4f.translate(float x,
float y,
float z,
float w)
Translate a vector
|
Modifier and Type | Method and Description |
---|---|
static Vector4f |
Vector4f.add(Vector4f left,
Vector4f right,
Vector4f dest)
Add a vector to another vector and place the result in a destination
vector.
|
static float |
Vector4f.angle(Vector4f a,
Vector4f b)
Calculate the angle between two vectors, in radians
|
static float |
Vector4f.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
|
Vector4f |
Vector4f.negate(Vector4f dest)
Negate a vector and place the result in a destination vector.
|
Vector4f |
Vector4f.normalise(Vector4f dest)
Normalise this vector and place the result in another vector.
|
void |
Quaternion.setFromAxisAngle(Vector4f a1)
Sets the value of this quaternion to the equivalent rotation of the
Axis-Angle argument.
|
static Vector4f |
Vector4f.sub(Vector4f left,
Vector4f right,
Vector4f dest)
Subtract a vector from another vector and place the result in a destination
vector.
|
static Vector4f |
Matrix4f.transform(Matrix4f left,
Vector4f right,
Vector4f dest)
Transform a Vector by a matrix and return the result in a destination
vector.
|
Copyright © 2002-2009 lwjgl.org. All Rights Reserved.