Static Public Member Functions | |
| static meshlib.Matrix4i | zero () |
| static meshlib.Matrix4i | identity () |
| static meshlib.Matrix4i | scale (int 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.Vector4i.LAYOUT, meshlib.Vector4i.LAYOUT, meshlib.Vector4i.LAYOUT, meshlib.Vector4i.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::Matrix4i.
Has the same layout as the C++ struct, the fields are accessed in place in native memory.
| meshlib.Matrix4i.Matrix4i | ( | 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.Matrix4i.Matrix4i | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_Matrix4i_DefaultConstruct().
| meshlib.Matrix4i.Matrix4i | ( | meshlib.Vector4i | x, |
| meshlib.Vector4i | y, | ||
| meshlib.Vector4i | z, | ||
| meshlib.Vector4i | w ) |
initializes matrix from 4 row-vectors Generated from constructor MR::Matrix4i::Matrix4i. 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_Matrix4i_Construct_4().
| meshlib.Matrix4i.Matrix4i | ( | meshlib.Matrix3i | r, |
| meshlib.Vector3i | t ) |
construct from rotation matrix and translation vector Generated from constructor MR::Matrix4i::Matrix4i. 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_Matrix4i_Construct_2().
| int meshlib.Matrix4i.call | ( | int | row, |
| int | col ) |
element access Generated from method MR::Matrix4i::operator().
Calls MR_Matrix4i_call().
| java.lang.foreign.MemorySegment meshlib.Matrix4i.call_mut | ( | int | row, |
| int | col ) |
Generated from method MR::Matrix4i::operator().
Calls MR_Matrix4i_call_mut(). Some types are raw C types, see the C bindings for the details.
| meshlib.Vector4i meshlib.Matrix4i.col | ( | int | i | ) |
column access Generated from method MR::Matrix4i::col.
Calls MR_Matrix4i_col().
| Matrix4i meshlib.Matrix4i.copy | ( | ) |
A copy of the struct, in its own memory.
| java.lang.Integer meshlib.Matrix4i.data | ( | ) |
Generated from method MR::Matrix4i::data.
Calls MR_Matrix4i_data().
| java.lang.foreign.MemorySegment meshlib.Matrix4i.data_mut | ( | ) |
Generated from method MR::Matrix4i::data.
Calls MR_Matrix4i_data_mut(). Some types are raw C types, see the C bindings for the details.
| int meshlib.Matrix4i.det | ( | ) |
computes determinant of the matrix Generated from method MR::Matrix4i::det.
Calls MR_Matrix4i_det().
| meshlib.Matrix3i meshlib.Matrix4i.getRotation | ( | ) |
Generated from method MR::Matrix4i::getRotation.
Calls MR_Matrix4i_getRotation().
| meshlib.Vector3i meshlib.Matrix4i.getTranslation | ( | ) |
Generated from method MR::Matrix4i::getTranslation.
Calls MR_Matrix4i_getTranslation().
|
static |
Generated from method MR::Matrix4i::identity.
Calls MR_Matrix4i_identity().
| meshlib.Vector4i meshlib.Matrix4i.index | ( | int | row | ) |
row access Generated from method MR::Matrix4i::operator[].
Calls MR_Matrix4i_index().
| meshlib.Vector4i meshlib.Matrix4i.index_mut | ( | int | row | ) |
Generated from method MR::Matrix4i::operator[].
Calls MR_Matrix4i_index_mut().
| double meshlib.Matrix4i.norm | ( | ) |
Generated from method MR::Matrix4i::norm.
Calls MR_Matrix4i_norm().
| int meshlib.Matrix4i.normSq | ( | ) |
compute sum of squared matrix elements Generated from method MR::Matrix4i::normSq.
Calls MR_Matrix4i_normSq().
|
static |
returns a matrix that scales uniformly Generated from method MR::Matrix4i::scale.
Calls MR_Matrix4i_scale().
| void meshlib.Matrix4i.set | ( | Matrix4i | other | ) |
Overwrites the contents with those of another struct.
| void meshlib.Matrix4i.setRotation | ( | meshlib.Matrix3i | rot | ) |
Generated from method MR::Matrix4i::setRotation.
Calls MR_Matrix4i_setRotation().
| void meshlib.Matrix4i.setTranslation | ( | meshlib.Vector3i | t | ) |
Generated from method MR::Matrix4i::setTranslation.
Calls MR_Matrix4i_setTranslation().
| void meshlib.Matrix4i.setW | ( | meshlib.Vector4i | value | ) |
| void meshlib.Matrix4i.setX | ( | meshlib.Vector4i | value | ) |
| void meshlib.Matrix4i.setY | ( | meshlib.Vector4i | value | ) |
| void meshlib.Matrix4i.setZ | ( | meshlib.Vector4i | value | ) |
| meshlib.Matrix3i meshlib.Matrix4i.submatrix3 | ( | int | i, |
| int | j ) |
computes submatrix of the matrix with excluded i-th row and j-th column Generated from method MR::Matrix4i::submatrix3.
Calls MR_Matrix4i_submatrix3().
| int meshlib.Matrix4i.trace | ( | ) |
computes trace of the matrix Generated from method MR::Matrix4i::trace.
Calls MR_Matrix4i_trace().
| meshlib.Matrix4i meshlib.Matrix4i.transposed | ( | ) |
computes transposed matrix Generated from method MR::Matrix4i::transposed.
Calls MR_Matrix4i_transposed().
| meshlib.Vector4i meshlib.Matrix4i.w | ( | ) |
| meshlib.Vector4i meshlib.Matrix4i.x | ( | ) |
rows, identity matrix by default
| meshlib.Vector4i meshlib.Matrix4i.y | ( | ) |
| meshlib.Vector4i meshlib.Matrix4i.z | ( | ) |
|
static |
Generated from method MR::Matrix4i::zero.
Calls MR_Matrix4i_zero().
|
static |
The native layout of the struct.
|
static |
|
static |
|
static |
|
static |