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

Public Member Functions

 Matrix4b (java.lang.foreign.MemorySegment segment, java.lang.Object owner)
Matrix4b copy ()
void set (Matrix4b other)
meshlib.Vector4b x ()
void setX (meshlib.Vector4b value)
meshlib.Vector4b y ()
void setY (meshlib.Vector4b value)
meshlib.Vector4b z ()
void setZ (meshlib.Vector4b value)
meshlib.Vector4b w ()
void setW (meshlib.Vector4b value)
 Matrix4b ()
 Matrix4b (meshlib.Vector4b x, meshlib.Vector4b y, meshlib.Vector4b z, meshlib.Vector4b w)
 Matrix4b (meshlib.Matrix3b r, meshlib.Vector3b t)
boolean call (int row, int col)
java.lang.foreign.MemorySegment call_mut (int row, int col)
meshlib.Vector4b index (int row)
meshlib.Vector4b index_mut (int row)
meshlib.Vector4b col (int i)
boolean trace ()
boolean normSq ()
double norm ()
meshlib.Matrix3b submatrix3 (int i, int j)
boolean det ()
meshlib.Matrix4b transposed ()
meshlib.Matrix3b getRotation ()
void setRotation (meshlib.Matrix3b rot)
meshlib.Vector3b getTranslation ()
void setTranslation (meshlib.Vector3b t)
java.lang.foreign.MemorySegment data_mut ()
java.lang.Boolean data ()
Public Member Functions inherited from meshlib.CppStruct
final java.lang.foreign.MemorySegment rawPointer ()

Static Public Member Functions

static meshlib.Matrix4b zero ()
static meshlib.Matrix4b identity ()
static meshlib.Matrix4b scale (boolean s)

Static Public Attributes

static final java.lang.foreign.StructLayout LAYOUT = meshlib.Ffi.structLayout(new java.lang.String[]{"x", "y", "z", "w"}, new java.lang.foreign.MemoryLayout[]{meshlib.Vector4b.LAYOUT, meshlib.Vector4b.LAYOUT, meshlib.Vector4b.LAYOUT, meshlib.Vector4b.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"))
static final long OFF_w = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("w"))

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 4x4 matrix Generated from class MR::Matrix4b.

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

Constructor & Destructor Documentation

◆ Matrix4b() [1/4]

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

◆ Matrix4b() [2/4]

meshlib.Matrix4b.Matrix4b ( )

Constructs an empty (default-constructed) instance.

Calls MR_Matrix4b_DefaultConstruct().

◆ Matrix4b() [3/4]

meshlib.Matrix4b.Matrix4b ( meshlib.Vector4b x,
meshlib.Vector4b y,
meshlib.Vector4b z,
meshlib.Vector4b w )

initializes matrix from 4 row-vectors Generated from constructor MR::Matrix4b::Matrix4b. 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. The reference to the parameter w might be preserved in the constructed object.

Calls MR_Matrix4b_Construct_4().

◆ Matrix4b() [4/4]

meshlib.Matrix4b.Matrix4b ( meshlib.Matrix3b r,
meshlib.Vector3b t )

construct from rotation matrix and translation vector Generated from constructor MR::Matrix4b::Matrix4b. The reference to the parameter r might be preserved in the constructed object. The reference to the parameter t might be preserved in the constructed object.

Calls MR_Matrix4b_Construct_2().

Member Function Documentation

◆ call()

boolean meshlib.Matrix4b.call ( int row,
int col )

element access Generated from method MR::Matrix4b::operator().

Calls MR_Matrix4b_call().

◆ call_mut()

java.lang.foreign.MemorySegment meshlib.Matrix4b.call_mut ( int row,
int col )

Generated from method MR::Matrix4b::operator().

Calls MR_Matrix4b_call_mut(). Some types are raw C types, see the C bindings for the details.

◆ col()

meshlib.Vector4b meshlib.Matrix4b.col ( int i)

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

Calls MR_Matrix4b_col().

◆ copy()

Matrix4b meshlib.Matrix4b.copy ( )

A copy of the struct, in its own memory.

◆ data()

java.lang.Boolean meshlib.Matrix4b.data ( )

Generated from method MR::Matrix4b::data.

Calls MR_Matrix4b_data().

◆ data_mut()

java.lang.foreign.MemorySegment meshlib.Matrix4b.data_mut ( )

Generated from method MR::Matrix4b::data.

Calls MR_Matrix4b_data_mut(). Some types are raw C types, see the C bindings for the details.

◆ det()

boolean meshlib.Matrix4b.det ( )

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

Calls MR_Matrix4b_det().

◆ getRotation()

meshlib.Matrix3b meshlib.Matrix4b.getRotation ( )

Generated from method MR::Matrix4b::getRotation.

Calls MR_Matrix4b_getRotation().

◆ getTranslation()

meshlib.Vector3b meshlib.Matrix4b.getTranslation ( )

Generated from method MR::Matrix4b::getTranslation.

Calls MR_Matrix4b_getTranslation().

◆ identity()

meshlib.Matrix4b meshlib.Matrix4b.identity ( )
static

Generated from method MR::Matrix4b::identity.

Calls MR_Matrix4b_identity().

◆ index()

meshlib.Vector4b meshlib.Matrix4b.index ( int row)

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

Calls MR_Matrix4b_index().

◆ index_mut()

meshlib.Vector4b meshlib.Matrix4b.index_mut ( int row)

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

Calls MR_Matrix4b_index_mut().

◆ norm()

double meshlib.Matrix4b.norm ( )

Generated from method MR::Matrix4b::norm.

Calls MR_Matrix4b_norm().

◆ normSq()

boolean meshlib.Matrix4b.normSq ( )

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

Calls MR_Matrix4b_normSq().

◆ scale()

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

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

Calls MR_Matrix4b_scale().

◆ set()

void meshlib.Matrix4b.set ( Matrix4b other)

Overwrites the contents with those of another struct.

◆ setRotation()

void meshlib.Matrix4b.setRotation ( meshlib.Matrix3b rot)

Generated from method MR::Matrix4b::setRotation.

Calls MR_Matrix4b_setRotation().

◆ setTranslation()

void meshlib.Matrix4b.setTranslation ( meshlib.Vector3b t)

Generated from method MR::Matrix4b::setTranslation.

Calls MR_Matrix4b_setTranslation().

◆ setW()

void meshlib.Matrix4b.setW ( meshlib.Vector4b value)

◆ setX()

void meshlib.Matrix4b.setX ( meshlib.Vector4b value)

◆ setY()

void meshlib.Matrix4b.setY ( meshlib.Vector4b value)

◆ setZ()

void meshlib.Matrix4b.setZ ( meshlib.Vector4b value)

◆ submatrix3()

meshlib.Matrix3b meshlib.Matrix4b.submatrix3 ( int i,
int j )

computes submatrix of the matrix with excluded i-th row and j-th column Generated from method MR::Matrix4b::submatrix3.

Calls MR_Matrix4b_submatrix3().

◆ trace()

boolean meshlib.Matrix4b.trace ( )

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

Calls MR_Matrix4b_trace().

◆ transposed()

meshlib.Matrix4b meshlib.Matrix4b.transposed ( )

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

Calls MR_Matrix4b_transposed().

◆ w()

meshlib.Vector4b meshlib.Matrix4b.w ( )

◆ x()

meshlib.Vector4b meshlib.Matrix4b.x ( )

rows, identity matrix by default

◆ y()

meshlib.Vector4b meshlib.Matrix4b.y ( )

◆ z()

meshlib.Vector4b meshlib.Matrix4b.z ( )

◆ zero()

meshlib.Matrix4b meshlib.Matrix4b.zero ( )
static

Generated from method MR::Matrix4b::zero.

Calls MR_Matrix4b_zero().

Member Data Documentation

◆ LAYOUT

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

The native layout of the struct.

◆ OFF_w

final long meshlib.Matrix4b.OFF_w = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("w"))
static

◆ OFF_x

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

◆ OFF_y

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

◆ OFF_z

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

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