|
Maxst AR SDK 4.0.0
4.0.0
|
Public Member Functions | |
| Vector3f (float x, float y, float z) | |
| Vector3f (float value) | |
| Vector3f () | |
| Vector3f (Vector3f vector) | |
| Vector3f (Vector4f vector) | |
| float [] | toArray () |
| void | add (Vector3f summand) |
| void | add (float summand) |
| void | subtract (Vector3f subtrahend) |
| void | multiplyByScalar (float scalar) |
| void | normalize () |
| float | getX () |
| float | getY () |
| float | getZ () |
| void | setX (float x) |
| void | setY (float y) |
| void | setZ (float z) |
| float | x () |
| float | y () |
| float | z () |
| void | x (float x) |
| void | y (float y) |
| void | z (float z) |
| void | setXYZ (float x, float y, float z) |
| float | dotProduct (Vector3f inputVec) |
| void | crossProduct (Vector3f inputVec, Vector3f outputVec) |
| float | getLength () |
| String | toString () |
| void | set (Vector3f source) |
| void | set (float[] source) |
Protected Attributes | |
| float [] | points = new float[3] |
3-dimensional vector with conventient getters and setters. Additionally this class is serializable and
|
inline |
Initialises the vector with the given values
| x | the x-component |
| y | the y-component |
| z | the z-component |
|
inline |
Initialises all components of this vector with the given same value.
| value | Initialisation value for all components |
|
inline |
Instantiates a new vector3f.
|
inline |
Copy constructor
|
inline |
Initialises this vector from a 4-dimensional vector. If the fourth component is not zero, a normalisation of all components will be performed.
| vector | The 4-dimensional vector that should be used for initialisation |
|
inline |
Adds a vector to this vector
| summand | the vector that should be added component-wise |
|
inline |
Adds the value to all components of this vector
| summand | The value that should be added to all components |
Get the cross product of this vector and another vector. The result will be stored in the output vector.
| inputVec | The vector you want to get the dot product of against this vector. |
| outputVec | The vector to store the result in. |
|
inline |
Return the dot product of this vector with the input vector
| inputVec | The vector you want to do the dot product with against this vector. |
|
inline |
If you need to get the length of a vector then use this function.
|
inline |
Gets the x.
|
inline |
Gets the y.
|
inline |
Gets the z.
|
inline |
Multiply by scalar.
| scalar | the scalar |
|
inline |
Normalize.
|
inline |
Clone the input vector so that this vector has the same values.
| source | The vector you want to clone. |
|
inline |
Clone the input vector so that this vector has the same values.
| source | The vector you want to clone. |
|
inline |
Sets the x.
| x | the new x |
|
inline |
Sets the y.
| y | the new y |
|
inline |
Sets the z.
| z | the new z |
|
inline |
| subtrahend |
|
inline |
Returns this vector as float-array.
|
inline |
Functions for convenience
|
protected |
A float array was chosen instead of individual variables due to performance concerns. Converting the points into an array at run time can cause slowness so instead we use one array and extract the individual variables with get methods.
1.8.14