Static Public Member Functions | |
| static meshlib.Matrix4b | zero () |
| static meshlib.Matrix4b | identity () |
| static meshlib.Matrix4b | scale (boolean s) |
Static Public Attributes | |
| static final java.lang.foreign.StructLayout | LAYOUT = meshlib.Ffi.structLayout(new java.lang.String[]{"x", "y", "z", "w"}, new java.lang.foreign.MemoryLayout[]{meshlib.Vector4b.LAYOUT, meshlib.Vector4b.LAYOUT, meshlib.Vector4b.LAYOUT, meshlib.Vector4b.LAYOUT}) |
| static final long | OFF_x = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("x")) |
| static final long | OFF_y = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("y")) |
| static final long | OFF_z = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("z")) |
| static final long | OFF_w = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("w")) |
Additional Inherited Members | |
| Protected Member Functions inherited from meshlib.CppStruct | |
| CppStruct (java.lang.foreign.MemorySegment segment, java.lang.Object owner) | |
| Protected Attributes inherited from meshlib.CppStruct | |
| final java.lang.foreign.MemorySegment | segment |
arbitrary 4x4 matrix Generated from class MR::Matrix4b.
Has the same layout as the C++ struct, the fields are accessed in place in native memory.
| meshlib.Matrix4b.Matrix4b | ( | java.lang.foreign.MemorySegment | segment, |
| java.lang.Object | owner ) |
Wraps a segment holding the struct. owner is kept alive as long as this wrapper is. Not for normal use.
| meshlib.Matrix4b.Matrix4b | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_Matrix4b_DefaultConstruct().
| meshlib.Matrix4b.Matrix4b | ( | meshlib.Vector4b | x, |
| meshlib.Vector4b | y, | ||
| meshlib.Vector4b | z, | ||
| meshlib.Vector4b | w ) |
initializes matrix from 4 row-vectors Generated from constructor MR::Matrix4b::Matrix4b. The reference to the parameter x might be preserved in the constructed object. The reference to the parameter y might be preserved in the constructed object. The reference to the parameter z might be preserved in the constructed object. The reference to the parameter w might be preserved in the constructed object.
Calls MR_Matrix4b_Construct_4().
| meshlib.Matrix4b.Matrix4b | ( | meshlib.Matrix3b | r, |
| meshlib.Vector3b | t ) |
construct from rotation matrix and translation vector Generated from constructor MR::Matrix4b::Matrix4b. The reference to the parameter r might be preserved in the constructed object. The reference to the parameter t might be preserved in the constructed object.
Calls MR_Matrix4b_Construct_2().
| boolean meshlib.Matrix4b.call | ( | int | row, |
| int | col ) |
element access Generated from method MR::Matrix4b::operator().
Calls MR_Matrix4b_call().
| java.lang.foreign.MemorySegment meshlib.Matrix4b.call_mut | ( | int | row, |
| int | col ) |
Generated from method MR::Matrix4b::operator().
Calls MR_Matrix4b_call_mut(). Some types are raw C types, see the C bindings for the details.
| meshlib.Vector4b meshlib.Matrix4b.col | ( | int | i | ) |
column access Generated from method MR::Matrix4b::col.
Calls MR_Matrix4b_col().
| Matrix4b meshlib.Matrix4b.copy | ( | ) |
A copy of the struct, in its own memory.
| java.lang.Boolean meshlib.Matrix4b.data | ( | ) |
Generated from method MR::Matrix4b::data.
Calls MR_Matrix4b_data().
| java.lang.foreign.MemorySegment meshlib.Matrix4b.data_mut | ( | ) |
Generated from method MR::Matrix4b::data.
Calls MR_Matrix4b_data_mut(). Some types are raw C types, see the C bindings for the details.
| boolean meshlib.Matrix4b.det | ( | ) |
computes determinant of the matrix Generated from method MR::Matrix4b::det.
Calls MR_Matrix4b_det().
| meshlib.Matrix3b meshlib.Matrix4b.getRotation | ( | ) |
Generated from method MR::Matrix4b::getRotation.
Calls MR_Matrix4b_getRotation().
| meshlib.Vector3b meshlib.Matrix4b.getTranslation | ( | ) |
Generated from method MR::Matrix4b::getTranslation.
Calls MR_Matrix4b_getTranslation().
|
static |
Generated from method MR::Matrix4b::identity.
Calls MR_Matrix4b_identity().
| meshlib.Vector4b meshlib.Matrix4b.index | ( | int | row | ) |
row access Generated from method MR::Matrix4b::operator[].
Calls MR_Matrix4b_index().
| meshlib.Vector4b meshlib.Matrix4b.index_mut | ( | int | row | ) |
Generated from method MR::Matrix4b::operator[].
Calls MR_Matrix4b_index_mut().
| double meshlib.Matrix4b.norm | ( | ) |
Generated from method MR::Matrix4b::norm.
Calls MR_Matrix4b_norm().
| boolean meshlib.Matrix4b.normSq | ( | ) |
compute sum of squared matrix elements Generated from method MR::Matrix4b::normSq.
Calls MR_Matrix4b_normSq().
|
static |
returns a matrix that scales uniformly Generated from method MR::Matrix4b::scale.
Calls MR_Matrix4b_scale().
| void meshlib.Matrix4b.set | ( | Matrix4b | other | ) |
Overwrites the contents with those of another struct.
| void meshlib.Matrix4b.setRotation | ( | meshlib.Matrix3b | rot | ) |
Generated from method MR::Matrix4b::setRotation.
Calls MR_Matrix4b_setRotation().
| void meshlib.Matrix4b.setTranslation | ( | meshlib.Vector3b | t | ) |
Generated from method MR::Matrix4b::setTranslation.
Calls MR_Matrix4b_setTranslation().
| void meshlib.Matrix4b.setW | ( | meshlib.Vector4b | value | ) |
| void meshlib.Matrix4b.setX | ( | meshlib.Vector4b | value | ) |
| void meshlib.Matrix4b.setY | ( | meshlib.Vector4b | value | ) |
| void meshlib.Matrix4b.setZ | ( | meshlib.Vector4b | value | ) |
| meshlib.Matrix3b meshlib.Matrix4b.submatrix3 | ( | int | i, |
| int | j ) |
computes submatrix of the matrix with excluded i-th row and j-th column Generated from method MR::Matrix4b::submatrix3.
Calls MR_Matrix4b_submatrix3().
| boolean meshlib.Matrix4b.trace | ( | ) |
computes trace of the matrix Generated from method MR::Matrix4b::trace.
Calls MR_Matrix4b_trace().
| meshlib.Matrix4b meshlib.Matrix4b.transposed | ( | ) |
computes transposed matrix Generated from method MR::Matrix4b::transposed.
Calls MR_Matrix4b_transposed().
| meshlib.Vector4b meshlib.Matrix4b.w | ( | ) |
| meshlib.Vector4b meshlib.Matrix4b.x | ( | ) |
rows, identity matrix by default
| meshlib.Vector4b meshlib.Matrix4b.y | ( | ) |
| meshlib.Vector4b meshlib.Matrix4b.z | ( | ) |
|
static |
Generated from method MR::Matrix4b::zero.
Calls MR_Matrix4b_zero().
|
static |
The native layout of the struct.
|
static |
|
static |
|
static |
|
static |