MeshLib Java Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib.AffineXf2f:

Public Member Functions

 AffineXf2f (java.lang.foreign.MemorySegment segment, java.lang.Object owner)
AffineXf2f copy ()
void set (AffineXf2f other)
meshlib.Matrix2f A ()
void setA (meshlib.Matrix2f value)
meshlib.Vector2f b ()
void setB (meshlib.Vector2f value)
 AffineXf2f ()
 AffineXf2f (meshlib.Matrix2f A, meshlib.Vector2f b)
meshlib.Vector2f call (meshlib.Vector2f x)
meshlib.Vector2f linearOnly (meshlib.Vector2f x)
meshlib.AffineXf2f inverse ()
Public Member Functions inherited from meshlib.CppStruct
final java.lang.foreign.MemorySegment rawPointer ()

Static Public Member Functions

static meshlib.AffineXf2f translation (meshlib.Vector2f b)
static meshlib.AffineXf2f linear (meshlib.Matrix2f A)
static meshlib.AffineXf2f xfAround (meshlib.Matrix2f A, meshlib.Vector2f 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.Matrix2f.LAYOUT, meshlib.Vector2f.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

Detailed Description

affine transformation: y = A*x + b, where A in VxV, and b in V Generated from class MR::AffineXf2f.

Has the same layout as the C++ struct, the fields are accessed in place in native memory.

Constructor & Destructor Documentation

◆ AffineXf2f() [1/3]

meshlib.AffineXf2f.AffineXf2f ( 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.

◆ AffineXf2f() [2/3]

meshlib.AffineXf2f.AffineXf2f ( )

Constructs an empty (default-constructed) instance.

Calls MR_AffineXf2f_DefaultConstruct().

◆ AffineXf2f() [3/3]

meshlib.AffineXf2f.AffineXf2f ( meshlib.Matrix2f A,
meshlib.Vector2f b )

Generated from constructor MR::AffineXf2f::AffineXf2f. 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_AffineXf2f_Construct().

Member Function Documentation

◆ A()

meshlib.Matrix2f meshlib.AffineXf2f.A ( )

◆ b()

meshlib.Vector2f meshlib.AffineXf2f.b ( )

◆ call()

meshlib.Vector2f meshlib.AffineXf2f.call ( meshlib.Vector2f x)

application of the transformation to a point Generated from method MR::AffineXf2f::operator().

Calls MR_AffineXf2f_call().

◆ copy()

AffineXf2f meshlib.AffineXf2f.copy ( )

A copy of the struct, in its own memory.

◆ inverse()

meshlib.AffineXf2f meshlib.AffineXf2f.inverse ( )

computes inverse transformation Generated from method MR::AffineXf2f::inverse.

Calls MR_AffineXf2f_inverse().

◆ linear()

meshlib.AffineXf2f meshlib.AffineXf2f.linear ( meshlib.Matrix2f A)
static

creates linear-only transformation (without translation) Generated from method MR::AffineXf2f::linear.

Calls MR_AffineXf2f_linear().

◆ linearOnly()

meshlib.Vector2f meshlib.AffineXf2f.linearOnly ( meshlib.Vector2f 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::AffineXf2f::linearOnly.

Calls MR_AffineXf2f_linearOnly().

◆ set()

void meshlib.AffineXf2f.set ( AffineXf2f other)

Overwrites the contents with those of another struct.

◆ setA()

void meshlib.AffineXf2f.setA ( meshlib.Matrix2f value)

◆ setB()

void meshlib.AffineXf2f.setB ( meshlib.Vector2f value)

◆ translation()

meshlib.AffineXf2f meshlib.AffineXf2f.translation ( meshlib.Vector2f b)
static

creates translation-only transformation (with identity linear component) Generated from method MR::AffineXf2f::translation.

Calls MR_AffineXf2f_translation().

◆ xfAround()

meshlib.AffineXf2f meshlib.AffineXf2f.xfAround ( meshlib.Matrix2f A,
meshlib.Vector2f stable )
static

creates transformation with given linear part with given stable point Generated from method MR::AffineXf2f::xfAround.

Calls MR_AffineXf2f_xfAround().

Member Data Documentation

◆ LAYOUT

final java.lang.foreign.StructLayout meshlib.AffineXf2f.LAYOUT = meshlib.Ffi.structLayout(new java.lang.String[]{"A", "b"}, new java.lang.foreign.MemoryLayout[]{meshlib.Matrix2f.LAYOUT, meshlib.Vector2f.LAYOUT})
static

The native layout of the struct.

◆ OFF_A

final long meshlib.AffineXf2f.OFF_A = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("A"))
static

◆ OFF_b

final long meshlib.AffineXf2f.OFF_b = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("b"))
static

The documentation for this class was generated from the following file: