|
MaxstAR Native Android
|
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
| com.maxst.ar.Vector4f.Vector4f | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | w | ||
| ) |
Instantiates a new vector4f.
| x | the x |
| y | the y |
| z | the z |
| w | the w |
| com.maxst.ar.Vector4f.Vector4f | ( | ) |
Instantiates a new vector4f.
| void com.maxst.ar.Vector4f.add | ( | Vector4f | vector | ) |
Adds the.
| vector | the vector |
| float [] com.maxst.ar.Vector4f.array | ( | ) |
To array.
| boolean com.maxst.ar.Vector4f.compareTo | ( | Vector4f | rhs | ) |
Compare this vector4f to the supplied one
| rhs | True if they match, false other wise. |
| void com.maxst.ar.Vector4f.copyFromV3f | ( | Vector3f | input, |
| float | w | ||
| ) |
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 |
| float com.maxst.ar.Vector4f.getW | ( | ) |
Gets the w.
| float com.maxst.ar.Vector4f.getX | ( | ) |
Gets the x.
| float com.maxst.ar.Vector4f.getY | ( | ) |
Gets the y.
| float com.maxst.ar.Vector4f.getZ | ( | ) |
Gets the z.
Linear interpolation between two vectors storing the result in the output variable.
| input | |
| output | |
| t |
| void com.maxst.ar.Vector4f.multiplyByScalar | ( | float | scalar | ) |
| void com.maxst.ar.Vector4f.normalize | ( | ) |
Normalize.
Reimplemented in com.maxst.ar.Quaternion.
| void com.maxst.ar.Vector4f.setW | ( | float | w | ) |
Sets the w.
| w | the new w |
| void com.maxst.ar.Vector4f.setX | ( | float | x | ) |
Sets the x.
| x | the new x |
| void com.maxst.ar.Vector4f.setY | ( | float | y | ) |
Sets the y.
| y | the new y |
| void com.maxst.ar.Vector4f.setZ | ( | float | z | ) |
Sets the z.
| z | the new z |
|
protected |
The points.
1.8.16