Public Member Functions | |
| Matrix3b (java.lang.foreign.MemorySegment segment, java.lang.Object owner) | |
| Matrix3b | copy () |
| void | set (Matrix3b other) |
| meshlib.Vector3b | x () |
| void | setX (meshlib.Vector3b value) |
| meshlib.Vector3b | y () |
| void | setY (meshlib.Vector3b value) |
| meshlib.Vector3b | z () |
| void | setZ (meshlib.Vector3b value) |
| Matrix3b () | |
| Matrix3b (meshlib.Vector3b x, meshlib.Vector3b y, meshlib.Vector3b z) | |
| meshlib.Vector3b | index (int row) |
| meshlib.Vector3b | index_mut (int row) |
| meshlib.Vector3b | col (int i) |
| boolean | trace () |
| boolean | normSq () |
| double | norm () |
| boolean | det () |
| meshlib.Matrix3b | transposed () |
| Public Member Functions inherited from meshlib.CppStruct | |
| final java.lang.foreign.MemorySegment | rawPointer () |
Static Public Member Functions | |
| static meshlib.Matrix3b | zero () |
| static meshlib.Matrix3b | identity () |
| static meshlib.Matrix3b | scale (boolean s) |
| static meshlib.Matrix3b | scale (boolean sx, boolean sy, boolean sz) |
| static meshlib.Matrix3b | scale (meshlib.Vector3b s) |
| static meshlib.Matrix3b | fromRows (meshlib.Vector3b x, meshlib.Vector3b y, meshlib.Vector3b z) |
| static meshlib.Matrix3b | fromColumns (meshlib.Vector3b x, meshlib.Vector3b y, meshlib.Vector3b z) |
Static Public Attributes | |
| static final java.lang.foreign.StructLayout | LAYOUT = meshlib.Ffi.structLayout(new java.lang.String[]{"x", "y", "z"}, new java.lang.foreign.MemoryLayout[]{meshlib.Vector3b.LAYOUT, meshlib.Vector3b.LAYOUT, meshlib.Vector3b.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")) |
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 3x3 matrix Generated from class MR::Matrix3b.
Has the same layout as the C++ struct, the fields are accessed in place in native memory.
| meshlib.Matrix3b.Matrix3b | ( | 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.Matrix3b.Matrix3b | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_Matrix3b_DefaultConstruct().
| meshlib.Matrix3b.Matrix3b | ( | meshlib.Vector3b | x, |
| meshlib.Vector3b | y, | ||
| meshlib.Vector3b | z ) |
initializes matrix from its 3 rows Generated from constructor MR::Matrix3b::Matrix3b. 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.
Calls MR_Matrix3b_Construct().
| meshlib.Vector3b meshlib.Matrix3b.col | ( | int | i | ) |
column access Generated from method MR::Matrix3b::col.
Calls MR_Matrix3b_col().
| Matrix3b meshlib.Matrix3b.copy | ( | ) |
A copy of the struct, in its own memory.
| boolean meshlib.Matrix3b.det | ( | ) |
computes determinant of the matrix Generated from method MR::Matrix3b::det.
Calls MR_Matrix3b_det().
|
static |
constructs a matrix from its 3 columns; use this method to get the matrix that transforms basis vectors ( plusX, plusY, plusZ ) into vectors ( x, y, z ) respectively Generated from method MR::Matrix3b::fromColumns.
Calls MR_Matrix3b_fromColumns().
|
static |
constructs a matrix from its 3 rows Generated from method MR::Matrix3b::fromRows.
Calls MR_Matrix3b_fromRows().
|
static |
Generated from method MR::Matrix3b::identity.
Calls MR_Matrix3b_identity().
| meshlib.Vector3b meshlib.Matrix3b.index | ( | int | row | ) |
row access Generated from method MR::Matrix3b::operator[].
Calls MR_Matrix3b_index().
| meshlib.Vector3b meshlib.Matrix3b.index_mut | ( | int | row | ) |
Generated from method MR::Matrix3b::operator[].
Calls MR_Matrix3b_index_mut().
| double meshlib.Matrix3b.norm | ( | ) |
Generated from method MR::Matrix3b::norm.
Calls MR_Matrix3b_norm().
| boolean meshlib.Matrix3b.normSq | ( | ) |
compute sum of squared matrix elements Generated from method MR::Matrix3b::normSq.
Calls MR_Matrix3b_normSq().
|
static |
returns a matrix that scales uniformly Generated from method MR::Matrix3b::scale.
Calls MR_Matrix3b_scale_1_bool().
|
static |
returns a matrix that has its own scale along each axis Generated from method MR::Matrix3b::scale.
Calls MR_Matrix3b_scale_3().
|
static |
Generated from method MR::Matrix3b::scale.
Calls MR_Matrix3b_scale_1_MR_Vector3b().
| void meshlib.Matrix3b.set | ( | Matrix3b | other | ) |
Overwrites the contents with those of another struct.
| void meshlib.Matrix3b.setX | ( | meshlib.Vector3b | value | ) |
| void meshlib.Matrix3b.setY | ( | meshlib.Vector3b | value | ) |
| void meshlib.Matrix3b.setZ | ( | meshlib.Vector3b | value | ) |
| boolean meshlib.Matrix3b.trace | ( | ) |
computes trace of the matrix Generated from method MR::Matrix3b::trace.
Calls MR_Matrix3b_trace().
| meshlib.Matrix3b meshlib.Matrix3b.transposed | ( | ) |
computes transposed matrix Generated from method MR::Matrix3b::transposed.
Calls MR_Matrix3b_transposed().
| meshlib.Vector3b meshlib.Matrix3b.x | ( | ) |
rows, identity matrix by default
| meshlib.Vector3b meshlib.Matrix3b.y | ( | ) |
| meshlib.Vector3b meshlib.Matrix3b.z | ( | ) |
|
static |
Generated from method MR::Matrix3b::zero.
Calls MR_Matrix3b_zero().
|
static |
The native layout of the struct.
|
static |
|
static |
|
static |