Public Member Functions | |
| AffineXf2d (java.lang.foreign.MemorySegment segment, java.lang.Object owner) | |
| AffineXf2d | copy () |
| void | set (AffineXf2d other) |
| meshlib.Matrix2d | A () |
| void | setA (meshlib.Matrix2d value) |
| meshlib.Vector2d | b () |
| void | setB (meshlib.Vector2d value) |
| AffineXf2d () | |
| AffineXf2d (meshlib.Matrix2d A, meshlib.Vector2d b) | |
| meshlib.Vector2d | call (meshlib.Vector2d x) |
| meshlib.Vector2d | linearOnly (meshlib.Vector2d x) |
| meshlib.AffineXf2d | inverse () |
| Public Member Functions inherited from meshlib.CppStruct | |
| final java.lang.foreign.MemorySegment | rawPointer () |
Static Public Member Functions | |
| static meshlib.AffineXf2d | translation (meshlib.Vector2d b) |
| static meshlib.AffineXf2d | linear (meshlib.Matrix2d A) |
| static meshlib.AffineXf2d | xfAround (meshlib.Matrix2d A, meshlib.Vector2d stable) |
Static Public Attributes | |
| static final java.lang.foreign.StructLayout | LAYOUT = meshlib.Ffi.structLayout(new java.lang.String[]{"A", "b"}, new java.lang.foreign.MemoryLayout[]{meshlib.Matrix2d.LAYOUT, meshlib.Vector2d.LAYOUT}) |
| static final long | OFF_A = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("A")) |
| static final long | OFF_b = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("b")) |
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 |
affine transformation: y = A*x + b, where A in VxV, and b in V Generated from class MR::AffineXf2d.
Has the same layout as the C++ struct, the fields are accessed in place in native memory.
| meshlib.AffineXf2d.AffineXf2d | ( | 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.AffineXf2d.AffineXf2d | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_AffineXf2d_DefaultConstruct().
| meshlib.AffineXf2d.AffineXf2d | ( | meshlib.Matrix2d | A, |
| meshlib.Vector2d | b ) |
Generated from constructor MR::AffineXf2d::AffineXf2d. The reference to the parameter A might be preserved in the constructed object. The reference to the parameter b might be preserved in the constructed object.
Calls MR_AffineXf2d_Construct().
| meshlib.Matrix2d meshlib.AffineXf2d.A | ( | ) |
| meshlib.Vector2d meshlib.AffineXf2d.b | ( | ) |
| meshlib.Vector2d meshlib.AffineXf2d.call | ( | meshlib.Vector2d | x | ) |
application of the transformation to a point Generated from method MR::AffineXf2d::operator().
Calls MR_AffineXf2d_call().
| AffineXf2d meshlib.AffineXf2d.copy | ( | ) |
A copy of the struct, in its own memory.
| meshlib.AffineXf2d meshlib.AffineXf2d.inverse | ( | ) |
computes inverse transformation Generated from method MR::AffineXf2d::inverse.
Calls MR_AffineXf2d_inverse().
|
static |
creates linear-only transformation (without translation) Generated from method MR::AffineXf2d::linear.
Calls MR_AffineXf2d_linear().
| meshlib.Vector2d meshlib.AffineXf2d.linearOnly | ( | meshlib.Vector2d | x | ) |
applies only linear part of the transformation to given vector (e.g. to normal) skipping adding shift (b) for example if this is a rigid transformation, then only rotates input vector Generated from method MR::AffineXf2d::linearOnly.
Calls MR_AffineXf2d_linearOnly().
| void meshlib.AffineXf2d.set | ( | AffineXf2d | other | ) |
Overwrites the contents with those of another struct.
| void meshlib.AffineXf2d.setA | ( | meshlib.Matrix2d | value | ) |
| void meshlib.AffineXf2d.setB | ( | meshlib.Vector2d | value | ) |
|
static |
creates translation-only transformation (with identity linear component) Generated from method MR::AffineXf2d::translation.
Calls MR_AffineXf2d_translation().
|
static |
creates transformation with given linear part with given stable point Generated from method MR::AffineXf2d::xfAround.
Calls MR_AffineXf2d_xfAround().
|
static |
The native layout of the struct.
|
static |
|
static |