Public Member Functions | |
| Matrix3i (java.lang.foreign.MemorySegment segment, java.lang.Object owner) | |
| Matrix3i | copy () |
| void | set (Matrix3i other) |
| meshlib.Vector3i | x () |
| void | setX (meshlib.Vector3i value) |
| meshlib.Vector3i | y () |
| void | setY (meshlib.Vector3i value) |
| meshlib.Vector3i | z () |
| void | setZ (meshlib.Vector3i value) |
| Matrix3i () | |
| Matrix3i (meshlib.Vector3i x, meshlib.Vector3i y, meshlib.Vector3i z) | |
| meshlib.Vector3i | index (int row) |
| meshlib.Vector3i | index_mut (int row) |
| meshlib.Vector3i | col (int i) |
| int | trace () |
| int | normSq () |
| double | norm () |
| int | det () |
| meshlib.Matrix3i | transposed () |
| Public Member Functions inherited from meshlib.CppStruct | |
| final java.lang.foreign.MemorySegment | rawPointer () |
Static Public Member Functions | |
| static meshlib.Matrix3i | zero () |
| static meshlib.Matrix3i | identity () |
| static meshlib.Matrix3i | scale (int s) |
| static meshlib.Matrix3i | scale (int sx, int sy, int sz) |
| static meshlib.Matrix3i | scale (meshlib.Vector3i s) |
| static meshlib.Matrix3i | fromRows (meshlib.Vector3i x, meshlib.Vector3i y, meshlib.Vector3i z) |
| static meshlib.Matrix3i | fromColumns (meshlib.Vector3i x, meshlib.Vector3i y, meshlib.Vector3i 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.Vector3i.LAYOUT, meshlib.Vector3i.LAYOUT, meshlib.Vector3i.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::Matrix3i.
Has the same layout as the C++ struct, the fields are accessed in place in native memory.
| meshlib.Matrix3i.Matrix3i | ( | 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.Matrix3i.Matrix3i | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_Matrix3i_DefaultConstruct().
| meshlib.Matrix3i.Matrix3i | ( | meshlib.Vector3i | x, |
| meshlib.Vector3i | y, | ||
| meshlib.Vector3i | z ) |
initializes matrix from its 3 rows Generated from constructor MR::Matrix3i::Matrix3i. 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_Matrix3i_Construct().
| meshlib.Vector3i meshlib.Matrix3i.col | ( | int | i | ) |
column access Generated from method MR::Matrix3i::col.
Calls MR_Matrix3i_col().
| Matrix3i meshlib.Matrix3i.copy | ( | ) |
A copy of the struct, in its own memory.
| int meshlib.Matrix3i.det | ( | ) |
computes determinant of the matrix Generated from method MR::Matrix3i::det.
Calls MR_Matrix3i_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::Matrix3i::fromColumns.
Calls MR_Matrix3i_fromColumns().
|
static |
constructs a matrix from its 3 rows Generated from method MR::Matrix3i::fromRows.
Calls MR_Matrix3i_fromRows().
|
static |
Generated from method MR::Matrix3i::identity.
Calls MR_Matrix3i_identity().
| meshlib.Vector3i meshlib.Matrix3i.index | ( | int | row | ) |
row access Generated from method MR::Matrix3i::operator[].
Calls MR_Matrix3i_index().
| meshlib.Vector3i meshlib.Matrix3i.index_mut | ( | int | row | ) |
Generated from method MR::Matrix3i::operator[].
Calls MR_Matrix3i_index_mut().
| double meshlib.Matrix3i.norm | ( | ) |
Generated from method MR::Matrix3i::norm.
Calls MR_Matrix3i_norm().
| int meshlib.Matrix3i.normSq | ( | ) |
compute sum of squared matrix elements Generated from method MR::Matrix3i::normSq.
Calls MR_Matrix3i_normSq().
|
static |
returns a matrix that scales uniformly Generated from method MR::Matrix3i::scale.
Calls MR_Matrix3i_scale_1_int().
|
static |
returns a matrix that has its own scale along each axis Generated from method MR::Matrix3i::scale.
Calls MR_Matrix3i_scale_3().
|
static |
Generated from method MR::Matrix3i::scale.
Calls MR_Matrix3i_scale_1_MR_Vector3i().
| void meshlib.Matrix3i.set | ( | Matrix3i | other | ) |
Overwrites the contents with those of another struct.
| void meshlib.Matrix3i.setX | ( | meshlib.Vector3i | value | ) |
| void meshlib.Matrix3i.setY | ( | meshlib.Vector3i | value | ) |
| void meshlib.Matrix3i.setZ | ( | meshlib.Vector3i | value | ) |
| int meshlib.Matrix3i.trace | ( | ) |
computes trace of the matrix Generated from method MR::Matrix3i::trace.
Calls MR_Matrix3i_trace().
| meshlib.Matrix3i meshlib.Matrix3i.transposed | ( | ) |
computes transposed matrix Generated from method MR::Matrix3i::transposed.
Calls MR_Matrix3i_transposed().
| meshlib.Vector3i meshlib.Matrix3i.x | ( | ) |
rows, identity matrix by default
| meshlib.Vector3i meshlib.Matrix3i.y | ( | ) |
| meshlib.Vector3i meshlib.Matrix3i.z | ( | ) |
|
static |
Generated from method MR::Matrix3i::zero.
Calls MR_Matrix3i_zero().
|
static |
The native layout of the struct.
|
static |
|
static |
|
static |