Simple 4x4 matrix of floats.
More...
Simple 4x4 matrix of floats.
◆ AiMatrix4f()
jassimp.AiMatrix4f.AiMatrix4f |
( |
float[] |
data | ) |
|
|
inline |
Wraps the given array of floats as matrix.
The array must have exactly 16 entries. The data in the array must be in row-major order.
- Parameters
-
data | the array to wrap, may not be null |
◆ get()
float jassimp.AiMatrix4f.get |
( |
int |
row, |
|
|
int |
col |
|
) |
| |
|
inline |
Gets an element of the matrix.
- Parameters
-
- Returns
- the element at the given position
◆ toByteBuffer()
FloatBuffer jassimp.AiMatrix4f.toByteBuffer |
( |
| ) |
|
|
inline |
Stores the matrix in a new direct ByteBuffer with native byte order.
The returned buffer can be passed to rendering APIs such as LWJGL, e.g., as parameter for GL20.glUniformMatrix4()
. Be sure to set transpose
to true
in this case, as OpenGL expects the matrix in column order.
- Returns
- a new native order, direct ByteBuffer
◆ toString()
String jassimp.AiMatrix4f.toString |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: