Static Public Member Functions | |
| static meshlib.Matrix4f | zero () |
| static meshlib.Matrix4f | identity () |
| static meshlib.Matrix4f | scale (float 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.Vector4f.LAYOUT, meshlib.Vector4f.LAYOUT, meshlib.Vector4f.LAYOUT, meshlib.Vector4f.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::Matrix4f.
Has the same layout as the C++ struct, the fields are accessed in place in native memory.
| meshlib.Matrix4f.Matrix4f | ( | 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.Matrix4f.Matrix4f | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_Matrix4f_DefaultConstruct().
| meshlib.Matrix4f.Matrix4f | ( | meshlib.Vector4f | x, |
| meshlib.Vector4f | y, | ||
| meshlib.Vector4f | z, | ||
| meshlib.Vector4f | w ) |
initializes matrix from 4 row-vectors Generated from constructor MR::Matrix4f::Matrix4f. 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_Matrix4f_Construct_4().
| meshlib.Matrix4f.Matrix4f | ( | meshlib.Matrix3f | r, |
| meshlib.Vector3f | t ) |
construct from rotation matrix and translation vector Generated from constructor MR::Matrix4f::Matrix4f. 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_Matrix4f_Construct_2().
| meshlib.Matrix4f.Matrix4f | ( | meshlib.AffineXf3f | xf | ) |
Currently AffineXf3<long long> doesn't seem to compile, so we disable this constructor for Matrix4<long long>, because otherwise mrbind instantiates the entire AffineXf3<long long> and chokes on it. Generated from constructor MR::Matrix4f::Matrix4f. The reference to the parameter xf might be preserved in the constructed object.
Calls MR_Matrix4f_Construct_1().
| meshlib.Vector3f meshlib.Matrix4f.call_1 | ( | meshlib.Vector3f | b | ) |
converts 3d-vector b in 4d-vector (b,1), multiplies matrix on it, and assuming the result is in homogeneous coordinates returns it as 3d-vector Generated from method MR::Matrix4f::operator().
Calls MR_Matrix4f_call_1().
| float meshlib.Matrix4f.call_2 | ( | int | row, |
| int | col ) |
element access Generated from method MR::Matrix4f::operator().
Calls MR_Matrix4f_call_2().
| java.lang.foreign.MemorySegment meshlib.Matrix4f.call_mut | ( | int | row, |
| int | col ) |
Generated from method MR::Matrix4f::operator().
Calls MR_Matrix4f_call_mut(). Some types are raw C types, see the C bindings for the details.
| meshlib.Vector4f meshlib.Matrix4f.col | ( | int | i | ) |
column access Generated from method MR::Matrix4f::col.
Calls MR_Matrix4f_col().
| meshlib.AffineXf3f meshlib.Matrix4f.convertTo_MR_AffineXf3f | ( | ) |
Generated from conversion operator MR::Matrix4f::operator MR::AffineXf3f.
Calls MR_Matrix4f_ConvertTo_MR_AffineXf3f().
| Matrix4f meshlib.Matrix4f.copy | ( | ) |
A copy of the struct, in its own memory.
| java.lang.Float meshlib.Matrix4f.data | ( | ) |
Generated from method MR::Matrix4f::data.
Calls MR_Matrix4f_data().
| java.lang.foreign.MemorySegment meshlib.Matrix4f.data_mut | ( | ) |
Generated from method MR::Matrix4f::data.
Calls MR_Matrix4f_data_mut(). Some types are raw C types, see the C bindings for the details.
| float meshlib.Matrix4f.det | ( | ) |
computes determinant of the matrix Generated from method MR::Matrix4f::det.
Calls MR_Matrix4f_det().
| meshlib.Matrix3f meshlib.Matrix4f.getRotation | ( | ) |
Generated from method MR::Matrix4f::getRotation.
Calls MR_Matrix4f_getRotation().
| meshlib.Vector3f meshlib.Matrix4f.getTranslation | ( | ) |
Generated from method MR::Matrix4f::getTranslation.
Calls MR_Matrix4f_getTranslation().
|
static |
Generated from method MR::Matrix4f::identity.
Calls MR_Matrix4f_identity().
| meshlib.Vector4f meshlib.Matrix4f.index | ( | int | row | ) |
row access Generated from method MR::Matrix4f::operator[].
Calls MR_Matrix4f_index().
| meshlib.Vector4f meshlib.Matrix4f.index_mut | ( | int | row | ) |
Generated from method MR::Matrix4f::operator[].
Calls MR_Matrix4f_index_mut().
| meshlib.Matrix4f meshlib.Matrix4f.inverse | ( | ) |
computes inverse matrix Generated from method MR::Matrix4f::inverse.
Calls MR_Matrix4f_inverse().
| float meshlib.Matrix4f.norm | ( | ) |
Generated from method MR::Matrix4f::norm.
Calls MR_Matrix4f_norm().
| float meshlib.Matrix4f.normSq | ( | ) |
compute sum of squared matrix elements Generated from method MR::Matrix4f::normSq.
Calls MR_Matrix4f_normSq().
|
static |
returns a matrix that scales uniformly Generated from method MR::Matrix4f::scale.
Calls MR_Matrix4f_scale().
| void meshlib.Matrix4f.set | ( | Matrix4f | other | ) |
Overwrites the contents with those of another struct.
| void meshlib.Matrix4f.setRotation | ( | meshlib.Matrix3f | rot | ) |
Generated from method MR::Matrix4f::setRotation.
Calls MR_Matrix4f_setRotation().
| void meshlib.Matrix4f.setTranslation | ( | meshlib.Vector3f | t | ) |
Generated from method MR::Matrix4f::setTranslation.
Calls MR_Matrix4f_setTranslation().
| void meshlib.Matrix4f.setW | ( | meshlib.Vector4f | value | ) |
| void meshlib.Matrix4f.setX | ( | meshlib.Vector4f | value | ) |
| void meshlib.Matrix4f.setY | ( | meshlib.Vector4f | value | ) |
| void meshlib.Matrix4f.setZ | ( | meshlib.Vector4f | value | ) |
| meshlib.Matrix3f meshlib.Matrix4f.submatrix3 | ( | int | i, |
| int | j ) |
computes submatrix of the matrix with excluded i-th row and j-th column Generated from method MR::Matrix4f::submatrix3.
Calls MR_Matrix4f_submatrix3().
| float meshlib.Matrix4f.trace | ( | ) |
computes trace of the matrix Generated from method MR::Matrix4f::trace.
Calls MR_Matrix4f_trace().
| meshlib.Matrix4f meshlib.Matrix4f.transposed | ( | ) |
computes transposed matrix Generated from method MR::Matrix4f::transposed.
Calls MR_Matrix4f_transposed().
| meshlib.Vector4f meshlib.Matrix4f.w | ( | ) |
| meshlib.Vector4f meshlib.Matrix4f.x | ( | ) |
rows, identity matrix by default
| meshlib.Vector4f meshlib.Matrix4f.y | ( | ) |
| meshlib.Vector4f meshlib.Matrix4f.z | ( | ) |
|
static |
Generated from method MR::Matrix4f::zero.
Calls MR_Matrix4f_zero().
|
static |
The native layout of the struct.
|
static |
|
static |
|
static |
|
static |