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

Public Member Functions

 Matrix4f (java.lang.foreign.MemorySegment segment, java.lang.Object owner)
Matrix4f copy ()
void set (Matrix4f other)
meshlib.Vector4f x ()
void setX (meshlib.Vector4f value)
meshlib.Vector4f y ()
void setY (meshlib.Vector4f value)
meshlib.Vector4f z ()
void setZ (meshlib.Vector4f value)
meshlib.Vector4f w ()
void setW (meshlib.Vector4f value)
 Matrix4f ()
 Matrix4f (meshlib.Vector4f x, meshlib.Vector4f y, meshlib.Vector4f z, meshlib.Vector4f w)
 Matrix4f (meshlib.Matrix3f r, meshlib.Vector3f t)
 Matrix4f (meshlib.AffineXf3f xf)
meshlib.AffineXf3f convertTo_MR_AffineXf3f ()
float call_2 (int row, int col)
java.lang.foreign.MemorySegment call_mut (int row, int col)
meshlib.Vector4f index (int row)
meshlib.Vector4f index_mut (int row)
meshlib.Vector4f col (int i)
float trace ()
float normSq ()
float norm ()
meshlib.Matrix3f submatrix3 (int i, int j)
float det ()
meshlib.Matrix4f inverse ()
meshlib.Matrix4f transposed ()
meshlib.Matrix3f getRotation ()
void setRotation (meshlib.Matrix3f rot)
meshlib.Vector3f getTranslation ()
void setTranslation (meshlib.Vector3f t)
java.lang.foreign.MemorySegment data_mut ()
java.lang.Float data ()
meshlib.Vector3f call_1 (meshlib.Vector3f b)
Public Member Functions inherited from meshlib.CppStruct
final java.lang.foreign.MemorySegment rawPointer ()

Static Public Member Functions

static meshlib.Matrix4f zero ()
static meshlib.Matrix4f identity ()
static meshlib.Matrix4f scale (float 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.Vector4f.LAYOUT, meshlib.Vector4f.LAYOUT, meshlib.Vector4f.LAYOUT, meshlib.Vector4f.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::Matrix4f.

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

Constructor & Destructor Documentation

◆ Matrix4f() [1/5]

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

◆ Matrix4f() [2/5]

meshlib.Matrix4f.Matrix4f ( )

Constructs an empty (default-constructed) instance.

Calls MR_Matrix4f_DefaultConstruct().

◆ Matrix4f() [3/5]

meshlib.Matrix4f.Matrix4f ( meshlib.Vector4f x,
meshlib.Vector4f y,
meshlib.Vector4f z,
meshlib.Vector4f w )

initializes matrix from 4 row-vectors Generated from constructor MR::Matrix4f::Matrix4f. 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_Matrix4f_Construct_4().

◆ Matrix4f() [4/5]

meshlib.Matrix4f.Matrix4f ( meshlib.Matrix3f r,
meshlib.Vector3f t )

construct from rotation matrix and translation vector Generated from constructor MR::Matrix4f::Matrix4f. 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_Matrix4f_Construct_2().

◆ Matrix4f() [5/5]

meshlib.Matrix4f.Matrix4f ( meshlib.AffineXf3f xf)

Currently AffineXf3<long long> doesn't seem to compile, so we disable this constructor for Matrix4<long long>, because otherwise mrbind instantiates the entire AffineXf3<long long> and chokes on it. Generated from constructor MR::Matrix4f::Matrix4f. The reference to the parameter xf might be preserved in the constructed object.

Calls MR_Matrix4f_Construct_1().

Member Function Documentation

◆ call_1()

meshlib.Vector3f meshlib.Matrix4f.call_1 ( meshlib.Vector3f b)

converts 3d-vector b in 4d-vector (b,1), multiplies matrix on it, and assuming the result is in homogeneous coordinates returns it as 3d-vector Generated from method MR::Matrix4f::operator().

Calls MR_Matrix4f_call_1().

◆ call_2()

float meshlib.Matrix4f.call_2 ( int row,
int col )

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

Calls MR_Matrix4f_call_2().

◆ call_mut()

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

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

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

◆ col()

meshlib.Vector4f meshlib.Matrix4f.col ( int i)

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

Calls MR_Matrix4f_col().

◆ convertTo_MR_AffineXf3f()

meshlib.AffineXf3f meshlib.Matrix4f.convertTo_MR_AffineXf3f ( )

Generated from conversion operator MR::Matrix4f::operator MR::AffineXf3f.

Calls MR_Matrix4f_ConvertTo_MR_AffineXf3f().

◆ copy()

Matrix4f meshlib.Matrix4f.copy ( )

A copy of the struct, in its own memory.

◆ data()

java.lang.Float meshlib.Matrix4f.data ( )

Generated from method MR::Matrix4f::data.

Calls MR_Matrix4f_data().

◆ data_mut()

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

Generated from method MR::Matrix4f::data.

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

◆ det()

float meshlib.Matrix4f.det ( )

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

Calls MR_Matrix4f_det().

◆ getRotation()

meshlib.Matrix3f meshlib.Matrix4f.getRotation ( )

Generated from method MR::Matrix4f::getRotation.

Calls MR_Matrix4f_getRotation().

◆ getTranslation()

meshlib.Vector3f meshlib.Matrix4f.getTranslation ( )

Generated from method MR::Matrix4f::getTranslation.

Calls MR_Matrix4f_getTranslation().

◆ identity()

meshlib.Matrix4f meshlib.Matrix4f.identity ( )
static

Generated from method MR::Matrix4f::identity.

Calls MR_Matrix4f_identity().

◆ index()

meshlib.Vector4f meshlib.Matrix4f.index ( int row)

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

Calls MR_Matrix4f_index().

◆ index_mut()

meshlib.Vector4f meshlib.Matrix4f.index_mut ( int row)

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

Calls MR_Matrix4f_index_mut().

◆ inverse()

meshlib.Matrix4f meshlib.Matrix4f.inverse ( )

computes inverse matrix Generated from method MR::Matrix4f::inverse.

Calls MR_Matrix4f_inverse().

◆ norm()

float meshlib.Matrix4f.norm ( )

Generated from method MR::Matrix4f::norm.

Calls MR_Matrix4f_norm().

◆ normSq()

float meshlib.Matrix4f.normSq ( )

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

Calls MR_Matrix4f_normSq().

◆ scale()

meshlib.Matrix4f meshlib.Matrix4f.scale ( float s)
static

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

Calls MR_Matrix4f_scale().

◆ set()

void meshlib.Matrix4f.set ( Matrix4f other)

Overwrites the contents with those of another struct.

◆ setRotation()

void meshlib.Matrix4f.setRotation ( meshlib.Matrix3f rot)

Generated from method MR::Matrix4f::setRotation.

Calls MR_Matrix4f_setRotation().

◆ setTranslation()

void meshlib.Matrix4f.setTranslation ( meshlib.Vector3f t)

Generated from method MR::Matrix4f::setTranslation.

Calls MR_Matrix4f_setTranslation().

◆ setW()

void meshlib.Matrix4f.setW ( meshlib.Vector4f value)

◆ setX()

void meshlib.Matrix4f.setX ( meshlib.Vector4f value)

◆ setY()

void meshlib.Matrix4f.setY ( meshlib.Vector4f value)

◆ setZ()

void meshlib.Matrix4f.setZ ( meshlib.Vector4f value)

◆ submatrix3()

meshlib.Matrix3f meshlib.Matrix4f.submatrix3 ( int i,
int j )

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

Calls MR_Matrix4f_submatrix3().

◆ trace()

float meshlib.Matrix4f.trace ( )

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

Calls MR_Matrix4f_trace().

◆ transposed()

meshlib.Matrix4f meshlib.Matrix4f.transposed ( )

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

Calls MR_Matrix4f_transposed().

◆ w()

meshlib.Vector4f meshlib.Matrix4f.w ( )

◆ x()

meshlib.Vector4f meshlib.Matrix4f.x ( )

rows, identity matrix by default

◆ y()

meshlib.Vector4f meshlib.Matrix4f.y ( )

◆ z()

meshlib.Vector4f meshlib.Matrix4f.z ( )

◆ zero()

meshlib.Matrix4f meshlib.Matrix4f.zero ( )
static

Generated from method MR::Matrix4f::zero.

Calls MR_Matrix4f_zero().

Member Data Documentation

◆ LAYOUT

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

The native layout of the struct.

◆ OFF_w

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

◆ OFF_x

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

◆ OFF_y

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

◆ OFF_z

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

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