Public Member Functions | |
| Matrix2i64 (java.lang.foreign.MemorySegment segment, java.lang.Object owner) | |
| Matrix2i64 | copy () |
| void | set (Matrix2i64 other) |
| meshlib.Vector2i64 | x () |
| void | setX (meshlib.Vector2i64 value) |
| meshlib.Vector2i64 | y () |
| void | setY (meshlib.Vector2i64 value) |
| Matrix2i64 () | |
| Matrix2i64 (meshlib.Vector2i64 x, meshlib.Vector2i64 y) | |
| meshlib.Vector2i64 | index (int row) |
| meshlib.Vector2i64 | index_mut (int row) |
| meshlib.Vector2i64 | col (int i) |
| long | trace () |
| long | normSq () |
| double | norm () |
| long | det () |
| meshlib.Matrix2i64 | transposed () |
| Public Member Functions inherited from meshlib.CppStruct | |
| final java.lang.foreign.MemorySegment | rawPointer () |
Static Public Member Functions | |
| static meshlib.Matrix2i64 | zero () |
| static meshlib.Matrix2i64 | identity () |
| static meshlib.Matrix2i64 | scale (long s) |
| static meshlib.Matrix2i64 | scale (long sx, long sy) |
| static meshlib.Matrix2i64 | scale (meshlib.Vector2i64 s) |
| static meshlib.Matrix2i64 | fromRows (meshlib.Vector2i64 x, meshlib.Vector2i64 y) |
| static meshlib.Matrix2i64 | fromColumns (meshlib.Vector2i64 x, meshlib.Vector2i64 y) |
Static Public Attributes | |
| static final java.lang.foreign.StructLayout | LAYOUT = meshlib.Ffi.structLayout(new java.lang.String[]{"x", "y"}, new java.lang.foreign.MemoryLayout[]{meshlib.Vector2i64.LAYOUT, meshlib.Vector2i64.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")) |
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 2x2 matrix Generated from class MR::Matrix2i64.
Has the same layout as the C++ struct, the fields are accessed in place in native memory.
| meshlib.Matrix2i64.Matrix2i64 | ( | 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.Matrix2i64.Matrix2i64 | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_Matrix2i64_DefaultConstruct().
| meshlib.Matrix2i64.Matrix2i64 | ( | meshlib.Vector2i64 | x, |
| meshlib.Vector2i64 | y ) |
initializes matrix from its 2 rows Generated from constructor MR::Matrix2i64::Matrix2i64. 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.
Calls MR_Matrix2i64_Construct().
| meshlib.Vector2i64 meshlib.Matrix2i64.col | ( | int | i | ) |
column access Generated from method MR::Matrix2i64::col.
Calls MR_Matrix2i64_col().
| Matrix2i64 meshlib.Matrix2i64.copy | ( | ) |
A copy of the struct, in its own memory.
| long meshlib.Matrix2i64.det | ( | ) |
computes determinant of the matrix Generated from method MR::Matrix2i64::det.
Calls MR_Matrix2i64_det().
|
static |
constructs a matrix from its 2 columns; use this method to get the matrix that transforms basis vectors ( plusX, plusY ) into vectors ( x, y ) respectively Generated from method MR::Matrix2i64::fromColumns.
Calls MR_Matrix2i64_fromColumns().
|
static |
constructs a matrix from its 2 rows Generated from method MR::Matrix2i64::fromRows.
Calls MR_Matrix2i64_fromRows().
|
static |
Generated from method MR::Matrix2i64::identity.
Calls MR_Matrix2i64_identity().
| meshlib.Vector2i64 meshlib.Matrix2i64.index | ( | int | row | ) |
row access Generated from method MR::Matrix2i64::operator[].
Calls MR_Matrix2i64_index().
| meshlib.Vector2i64 meshlib.Matrix2i64.index_mut | ( | int | row | ) |
Generated from method MR::Matrix2i64::operator[].
Calls MR_Matrix2i64_index_mut().
| double meshlib.Matrix2i64.norm | ( | ) |
Generated from method MR::Matrix2i64::norm.
Calls MR_Matrix2i64_norm().
| long meshlib.Matrix2i64.normSq | ( | ) |
compute sum of squared matrix elements Generated from method MR::Matrix2i64::normSq.
Calls MR_Matrix2i64_normSq().
|
static |
returns a matrix that scales uniformly Generated from method MR::Matrix2i64::scale.
Calls MR_Matrix2i64_scale_1_int64_t().
|
static |
returns a matrix that has its own scale along each axis Generated from method MR::Matrix2i64::scale.
Calls MR_Matrix2i64_scale_2().
|
static |
Generated from method MR::Matrix2i64::scale.
Calls MR_Matrix2i64_scale_1_MR_Vector2i64().
| void meshlib.Matrix2i64.set | ( | Matrix2i64 | other | ) |
Overwrites the contents with those of another struct.
| void meshlib.Matrix2i64.setX | ( | meshlib.Vector2i64 | value | ) |
| void meshlib.Matrix2i64.setY | ( | meshlib.Vector2i64 | value | ) |
| long meshlib.Matrix2i64.trace | ( | ) |
computes trace of the matrix Generated from method MR::Matrix2i64::trace.
Calls MR_Matrix2i64_trace().
| meshlib.Matrix2i64 meshlib.Matrix2i64.transposed | ( | ) |
computes transposed matrix Generated from method MR::Matrix2i64::transposed.
Calls MR_Matrix2i64_transposed().
| meshlib.Vector2i64 meshlib.Matrix2i64.x | ( | ) |
rows, identity matrix by default
| meshlib.Vector2i64 meshlib.Matrix2i64.y | ( | ) |
|
static |
Generated from method MR::Matrix2i64::zero.
Calls MR_Matrix2i64_zero().
|
static |
The native layout of the struct.
|
static |
|
static |