|
Assimp
v4.1. (December 2018)
|
Wrapper for 3-dimensional vectors. More...
Public Member Functions | |
| AiVector (ByteBuffer buffer, int offset, int numComponents) | |
| Constructor. More... | |
| int | getNumComponents () |
| Returns the number of components in this vector. More... | |
| float | getX () |
| Returns the x value. More... | |
| float | getY () |
| Returns the y value. More... | |
| float | getZ () |
| Returns the z value. More... | |
| void | setX (float x) |
| Sets the x component. More... | |
| void | setY (float y) |
| Sets the y component. More... | |
| void | setZ (float z) |
| Sets the z component. More... | |
| String | toString () |
Wrapper for 3-dimensional vectors.
This wrapper is also used to represent 1- and 2-dimensional vectors. In these cases only the x (or the x and y coordinate) will be used. Accessing unused components will throw UnsupportedOperationExceptions.
The wrapper is writable, i.e., changes performed via the set-methods will modify the underlying mesh.
|
inline |
Constructor.
| buffer | the buffer to wrap |
| offset | offset into buffer |
| numComponents | number vector of components |
|
inline |
Returns the number of components in this vector.
|
inline |
Returns the x value.
|
inline |
Returns the y value.
May only be called on 2- or 3-dimensional vectors.
|
inline |
Returns the z value.
May only be called on 3-dimensional vectors.
|
inline |
Sets the x component.
| x | the new value |
|
inline |
Sets the y component.
May only be called on 2- or 3-dimensional vectors.
| y | the new value |
|
inline |
Sets the z component.
May only be called on 3-dimensional vectors.
| z | the new value |
|
inline |