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

Public Member Functions

 Matrix3b (java.lang.foreign.MemorySegment segment, java.lang.Object owner)
Matrix3b copy ()
void set (Matrix3b other)
meshlib.Vector3b x ()
void setX (meshlib.Vector3b value)
meshlib.Vector3b y ()
void setY (meshlib.Vector3b value)
meshlib.Vector3b z ()
void setZ (meshlib.Vector3b value)
 Matrix3b ()
 Matrix3b (meshlib.Vector3b x, meshlib.Vector3b y, meshlib.Vector3b z)
meshlib.Vector3b index (int row)
meshlib.Vector3b index_mut (int row)
meshlib.Vector3b col (int i)
boolean trace ()
boolean normSq ()
double norm ()
boolean det ()
meshlib.Matrix3b transposed ()
Public Member Functions inherited from meshlib.CppStruct
final java.lang.foreign.MemorySegment rawPointer ()

Static Public Member Functions

static meshlib.Matrix3b zero ()
static meshlib.Matrix3b identity ()
static meshlib.Matrix3b scale (boolean s)
static meshlib.Matrix3b scale (boolean sx, boolean sy, boolean sz)
static meshlib.Matrix3b scale (meshlib.Vector3b s)
static meshlib.Matrix3b fromRows (meshlib.Vector3b x, meshlib.Vector3b y, meshlib.Vector3b z)
static meshlib.Matrix3b fromColumns (meshlib.Vector3b x, meshlib.Vector3b y, meshlib.Vector3b 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.Vector3b.LAYOUT, meshlib.Vector3b.LAYOUT, meshlib.Vector3b.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

Detailed Description

arbitrary 3x3 matrix Generated from class MR::Matrix3b.

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

Constructor & Destructor Documentation

◆ Matrix3b() [1/3]

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

◆ Matrix3b() [2/3]

meshlib.Matrix3b.Matrix3b ( )

Constructs an empty (default-constructed) instance.

Calls MR_Matrix3b_DefaultConstruct().

◆ Matrix3b() [3/3]

meshlib.Matrix3b.Matrix3b ( meshlib.Vector3b x,
meshlib.Vector3b y,
meshlib.Vector3b z )

initializes matrix from its 3 rows Generated from constructor MR::Matrix3b::Matrix3b. 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_Matrix3b_Construct().

Member Function Documentation

◆ col()

meshlib.Vector3b meshlib.Matrix3b.col ( int i)

column access Generated from method MR::Matrix3b::col.

Calls MR_Matrix3b_col().

◆ copy()

Matrix3b meshlib.Matrix3b.copy ( )

A copy of the struct, in its own memory.

◆ det()

boolean meshlib.Matrix3b.det ( )

computes determinant of the matrix Generated from method MR::Matrix3b::det.

Calls MR_Matrix3b_det().

◆ fromColumns()

meshlib.Matrix3b meshlib.Matrix3b.fromColumns ( meshlib.Vector3b x,
meshlib.Vector3b y,
meshlib.Vector3b z )
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::Matrix3b::fromColumns.

Calls MR_Matrix3b_fromColumns().

◆ fromRows()

meshlib.Matrix3b meshlib.Matrix3b.fromRows ( meshlib.Vector3b x,
meshlib.Vector3b y,
meshlib.Vector3b z )
static

constructs a matrix from its 3 rows Generated from method MR::Matrix3b::fromRows.

Calls MR_Matrix3b_fromRows().

◆ identity()

meshlib.Matrix3b meshlib.Matrix3b.identity ( )
static

Generated from method MR::Matrix3b::identity.

Calls MR_Matrix3b_identity().

◆ index()

meshlib.Vector3b meshlib.Matrix3b.index ( int row)

row access Generated from method MR::Matrix3b::operator[].

Calls MR_Matrix3b_index().

◆ index_mut()

meshlib.Vector3b meshlib.Matrix3b.index_mut ( int row)

Generated from method MR::Matrix3b::operator[].

Calls MR_Matrix3b_index_mut().

◆ norm()

double meshlib.Matrix3b.norm ( )

Generated from method MR::Matrix3b::norm.

Calls MR_Matrix3b_norm().

◆ normSq()

boolean meshlib.Matrix3b.normSq ( )

compute sum of squared matrix elements Generated from method MR::Matrix3b::normSq.

Calls MR_Matrix3b_normSq().

◆ scale() [1/3]

meshlib.Matrix3b meshlib.Matrix3b.scale ( boolean s)
static

returns a matrix that scales uniformly Generated from method MR::Matrix3b::scale.

Calls MR_Matrix3b_scale_1_bool().

◆ scale() [2/3]

meshlib.Matrix3b meshlib.Matrix3b.scale ( boolean sx,
boolean sy,
boolean sz )
static

returns a matrix that has its own scale along each axis Generated from method MR::Matrix3b::scale.

Calls MR_Matrix3b_scale_3().

◆ scale() [3/3]

meshlib.Matrix3b meshlib.Matrix3b.scale ( meshlib.Vector3b s)
static

Generated from method MR::Matrix3b::scale.

Calls MR_Matrix3b_scale_1_MR_Vector3b().

◆ set()

void meshlib.Matrix3b.set ( Matrix3b other)

Overwrites the contents with those of another struct.

◆ setX()

void meshlib.Matrix3b.setX ( meshlib.Vector3b value)

◆ setY()

void meshlib.Matrix3b.setY ( meshlib.Vector3b value)

◆ setZ()

void meshlib.Matrix3b.setZ ( meshlib.Vector3b value)

◆ trace()

boolean meshlib.Matrix3b.trace ( )

computes trace of the matrix Generated from method MR::Matrix3b::trace.

Calls MR_Matrix3b_trace().

◆ transposed()

meshlib.Matrix3b meshlib.Matrix3b.transposed ( )

computes transposed matrix Generated from method MR::Matrix3b::transposed.

Calls MR_Matrix3b_transposed().

◆ x()

meshlib.Vector3b meshlib.Matrix3b.x ( )

rows, identity matrix by default

◆ y()

meshlib.Vector3b meshlib.Matrix3b.y ( )

◆ z()

meshlib.Vector3b meshlib.Matrix3b.z ( )

◆ zero()

meshlib.Matrix3b meshlib.Matrix3b.zero ( )
static

Generated from method MR::Matrix3b::zero.

Calls MR_Matrix3b_zero().

Member Data Documentation

◆ LAYOUT

final java.lang.foreign.StructLayout meshlib.Matrix3b.LAYOUT = meshlib.Ffi.structLayout(new java.lang.String[]{"x", "y", "z"}, new java.lang.foreign.MemoryLayout[]{meshlib.Vector3b.LAYOUT, meshlib.Vector3b.LAYOUT, meshlib.Vector3b.LAYOUT})
static

The native layout of the struct.

◆ OFF_x

final long meshlib.Matrix3b.OFF_x = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("x"))
static

◆ OFF_y

final long meshlib.Matrix3b.OFF_y = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("y"))
static

◆ OFF_z

final long meshlib.Matrix3b.OFF_z = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("z"))
static

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