|
Maxst AR SDK 4.0.0
4.0.0
|
Public Member Functions | |
| Vector4f (float x, float y, float z, float w) | |
| Vector4f () | |
| Vector4f (Vector3f vector3f, float w) | |
| float [] | array () |
| void | copyVec4 (Vector4f vec) |
| void | add (Vector4f vector) |
| void | add (Vector3f vector, float w) |
| void | subtract (Vector4f vector) |
| void | subtract (Vector4f vector, Vector4f output) |
| void | subdivide (Vector4f vector) |
| void | multiplyByScalar (float scalar) |
| float | dotProduct (Vector4f input) |
| void | lerp (Vector4f input, Vector4f output, float t) |
| void | normalize () |
| float | getX () |
| float | getY () |
| float | getZ () |
| float | getW () |
| void | setX (float x) |
| void | setY (float y) |
| void | setZ (float z) |
| void | setW (float w) |
| float | x () |
| float | y () |
| float | z () |
| float | w () |
| void | x (float x) |
| void | y (float y) |
| void | z (float z) |
| void | w (float w) |
| void | setXYZW (float x, float y, float z, float w) |
| boolean | compareTo (Vector4f rhs) |
| void | copyFromV3f (Vector3f input, float w) |
| String | toString () |
Protected Attributes | |
| float | points [] = { 0, 0, 0, 0 } |
Representation of a four-dimensional float-vector
|
inline |
Instantiates a new vector4f.
| x | the x |
| y | the y |
| z | the z |
| w | the w |
|
inline |
Instantiates a new vector4f.
|
inline |
Adds the.
| vector | the vector |
|
inline |
To array.
|
inline |
Compare this vector4f to the supplied one
| rhs | True if they match, false other wise. |
|
inline |
Copies the data from the supplied vec3 into this vec4 plus the supplied w.
| input | The x y z values to copy in. |
| w | The extra w element to copy in |
|
inline |
Gets the w.
|
inline |
Gets the x.
|
inline |
Gets the y.
|
inline |
Gets the z.
Linear interpolation between two vectors storing the result in the output variable.
| input | |
| output | |
| t |
|
inline |
Multiply by scalar.
| scalar | the scalar |
|
inline |
Normalize.
|
inline |
Sets the w.
| w | the new w |
|
inline |
Sets the x.
| x | the new x |
|
inline |
Sets the y.
| y | the new y |
|
inline |
Sets the z.
| z | the new z |
|
protected |
The points.
1.8.14