Static Public Member Functions | |
| static meshlib.Matrix4d | zero () |
| static meshlib.Matrix4d | identity () |
| static meshlib.Matrix4d | scale (double 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.Vector4d.LAYOUT, meshlib.Vector4d.LAYOUT, meshlib.Vector4d.LAYOUT, meshlib.Vector4d.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::Matrix4d.
Has the same layout as the C++ struct, the fields are accessed in place in native memory.
| meshlib.Matrix4d.Matrix4d | ( | 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.Matrix4d.Matrix4d | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_Matrix4d_DefaultConstruct().
| meshlib.Matrix4d.Matrix4d | ( | meshlib.Vector4d | x, |
| meshlib.Vector4d | y, | ||
| meshlib.Vector4d | z, | ||
| meshlib.Vector4d | w ) |
initializes matrix from 4 row-vectors Generated from constructor MR::Matrix4d::Matrix4d. 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_Matrix4d_Construct_4().
| meshlib.Matrix4d.Matrix4d | ( | meshlib.Matrix3d | r, |
| meshlib.Vector3d | t ) |
construct from rotation matrix and translation vector Generated from constructor MR::Matrix4d::Matrix4d. 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_Matrix4d_Construct_2().
| meshlib.Matrix4d.Matrix4d | ( | meshlib.AffineXf3d | 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::Matrix4d::Matrix4d. The reference to the parameter xf might be preserved in the constructed object.
Calls MR_Matrix4d_Construct_1().
| meshlib.Vector3d meshlib.Matrix4d.call_1 | ( | meshlib.Vector3d | 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::Matrix4d::operator().
Calls MR_Matrix4d_call_1().
| double meshlib.Matrix4d.call_2 | ( | int | row, |
| int | col ) |
element access Generated from method MR::Matrix4d::operator().
Calls MR_Matrix4d_call_2().
| java.lang.foreign.MemorySegment meshlib.Matrix4d.call_mut | ( | int | row, |
| int | col ) |
Generated from method MR::Matrix4d::operator().
Calls MR_Matrix4d_call_mut(). Some types are raw C types, see the C bindings for the details.
| meshlib.Vector4d meshlib.Matrix4d.col | ( | int | i | ) |
column access Generated from method MR::Matrix4d::col.
Calls MR_Matrix4d_col().
| meshlib.AffineXf3d meshlib.Matrix4d.convertTo_MR_AffineXf3d | ( | ) |
Generated from conversion operator MR::Matrix4d::operator MR::AffineXf3d.
Calls MR_Matrix4d_ConvertTo_MR_AffineXf3d().
| Matrix4d meshlib.Matrix4d.copy | ( | ) |
A copy of the struct, in its own memory.
| java.lang.Double meshlib.Matrix4d.data | ( | ) |
Generated from method MR::Matrix4d::data.
Calls MR_Matrix4d_data().
| java.lang.foreign.MemorySegment meshlib.Matrix4d.data_mut | ( | ) |
Generated from method MR::Matrix4d::data.
Calls MR_Matrix4d_data_mut(). Some types are raw C types, see the C bindings for the details.
| double meshlib.Matrix4d.det | ( | ) |
computes determinant of the matrix Generated from method MR::Matrix4d::det.
Calls MR_Matrix4d_det().
| meshlib.Matrix3d meshlib.Matrix4d.getRotation | ( | ) |
Generated from method MR::Matrix4d::getRotation.
Calls MR_Matrix4d_getRotation().
| meshlib.Vector3d meshlib.Matrix4d.getTranslation | ( | ) |
Generated from method MR::Matrix4d::getTranslation.
Calls MR_Matrix4d_getTranslation().
|
static |
Generated from method MR::Matrix4d::identity.
Calls MR_Matrix4d_identity().
| meshlib.Vector4d meshlib.Matrix4d.index | ( | int | row | ) |
row access Generated from method MR::Matrix4d::operator[].
Calls MR_Matrix4d_index().
| meshlib.Vector4d meshlib.Matrix4d.index_mut | ( | int | row | ) |
Generated from method MR::Matrix4d::operator[].
Calls MR_Matrix4d_index_mut().
| meshlib.Matrix4d meshlib.Matrix4d.inverse | ( | ) |
computes inverse matrix Generated from method MR::Matrix4d::inverse.
Calls MR_Matrix4d_inverse().
| double meshlib.Matrix4d.norm | ( | ) |
Generated from method MR::Matrix4d::norm.
Calls MR_Matrix4d_norm().
| double meshlib.Matrix4d.normSq | ( | ) |
compute sum of squared matrix elements Generated from method MR::Matrix4d::normSq.
Calls MR_Matrix4d_normSq().
|
static |
returns a matrix that scales uniformly Generated from method MR::Matrix4d::scale.
Calls MR_Matrix4d_scale().
| void meshlib.Matrix4d.set | ( | Matrix4d | other | ) |
Overwrites the contents with those of another struct.
| void meshlib.Matrix4d.setRotation | ( | meshlib.Matrix3d | rot | ) |
Generated from method MR::Matrix4d::setRotation.
Calls MR_Matrix4d_setRotation().
| void meshlib.Matrix4d.setTranslation | ( | meshlib.Vector3d | t | ) |
Generated from method MR::Matrix4d::setTranslation.
Calls MR_Matrix4d_setTranslation().
| void meshlib.Matrix4d.setW | ( | meshlib.Vector4d | value | ) |
| void meshlib.Matrix4d.setX | ( | meshlib.Vector4d | value | ) |
| void meshlib.Matrix4d.setY | ( | meshlib.Vector4d | value | ) |
| void meshlib.Matrix4d.setZ | ( | meshlib.Vector4d | value | ) |
| meshlib.Matrix3d meshlib.Matrix4d.submatrix3 | ( | int | i, |
| int | j ) |
computes submatrix of the matrix with excluded i-th row and j-th column Generated from method MR::Matrix4d::submatrix3.
Calls MR_Matrix4d_submatrix3().
| double meshlib.Matrix4d.trace | ( | ) |
computes trace of the matrix Generated from method MR::Matrix4d::trace.
Calls MR_Matrix4d_trace().
| meshlib.Matrix4d meshlib.Matrix4d.transposed | ( | ) |
computes transposed matrix Generated from method MR::Matrix4d::transposed.
Calls MR_Matrix4d_transposed().
| meshlib.Vector4d meshlib.Matrix4d.w | ( | ) |
| meshlib.Vector4d meshlib.Matrix4d.x | ( | ) |
rows, identity matrix by default
| meshlib.Vector4d meshlib.Matrix4d.y | ( | ) |
| meshlib.Vector4d meshlib.Matrix4d.z | ( | ) |
|
static |
Generated from method MR::Matrix4d::zero.
Calls MR_Matrix4d_zero().
|
static |
The native layout of the struct.
|
static |
|
static |
|
static |
|
static |