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

Public Member Functions

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

Static Public Member Functions

static meshlib.AffineXf3d translation (meshlib.Vector3d b)
static meshlib.AffineXf3d linear (meshlib.Matrix3d A)
static meshlib.AffineXf3d xfAround (meshlib.Matrix3d A, meshlib.Vector3d 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.Matrix3d.LAYOUT, meshlib.Vector3d.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::AffineXf3d.

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

Constructor & Destructor Documentation

◆ AffineXf3d() [1/3]

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

◆ AffineXf3d() [2/3]

meshlib.AffineXf3d.AffineXf3d ( )

Constructs an empty (default-constructed) instance.

Calls MR_AffineXf3d_DefaultConstruct().

◆ AffineXf3d() [3/3]

meshlib.AffineXf3d.AffineXf3d ( meshlib.Matrix3d A,
meshlib.Vector3d b )

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

Member Function Documentation

◆ A()

meshlib.Matrix3d meshlib.AffineXf3d.A ( )

◆ b()

meshlib.Vector3d meshlib.AffineXf3d.b ( )

◆ call()

meshlib.Vector3d meshlib.AffineXf3d.call ( meshlib.Vector3d x)

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

Calls MR_AffineXf3d_call().

◆ copy()

AffineXf3d meshlib.AffineXf3d.copy ( )

A copy of the struct, in its own memory.

◆ inverse()

meshlib.AffineXf3d meshlib.AffineXf3d.inverse ( )

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

Calls MR_AffineXf3d_inverse().

◆ linear()

meshlib.AffineXf3d meshlib.AffineXf3d.linear ( meshlib.Matrix3d A)
static

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

Calls MR_AffineXf3d_linear().

◆ linearOnly()

meshlib.Vector3d meshlib.AffineXf3d.linearOnly ( meshlib.Vector3d 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::AffineXf3d::linearOnly.

Calls MR_AffineXf3d_linearOnly().

◆ set()

void meshlib.AffineXf3d.set ( AffineXf3d other)

Overwrites the contents with those of another struct.

◆ setA()

void meshlib.AffineXf3d.setA ( meshlib.Matrix3d value)

◆ setB()

void meshlib.AffineXf3d.setB ( meshlib.Vector3d value)

◆ translation()

meshlib.AffineXf3d meshlib.AffineXf3d.translation ( meshlib.Vector3d b)
static

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

Calls MR_AffineXf3d_translation().

◆ xfAround()

meshlib.AffineXf3d meshlib.AffineXf3d.xfAround ( meshlib.Matrix3d A,
meshlib.Vector3d stable )
static

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

Calls MR_AffineXf3d_xfAround().

Member Data Documentation

◆ LAYOUT

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

The native layout of the struct.

◆ OFF_A

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

◆ OFF_b

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

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