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

Public Member Functions

 Matrix4d (java.lang.foreign.MemorySegment segment, java.lang.Object owner)
Matrix4d copy ()
void set (Matrix4d other)
meshlib.Vector4d x ()
void setX (meshlib.Vector4d value)
meshlib.Vector4d y ()
void setY (meshlib.Vector4d value)
meshlib.Vector4d z ()
void setZ (meshlib.Vector4d value)
meshlib.Vector4d w ()
void setW (meshlib.Vector4d value)
 Matrix4d ()
 Matrix4d (meshlib.Vector4d x, meshlib.Vector4d y, meshlib.Vector4d z, meshlib.Vector4d w)
 Matrix4d (meshlib.Matrix3d r, meshlib.Vector3d t)
 Matrix4d (meshlib.AffineXf3d xf)
meshlib.AffineXf3d convertTo_MR_AffineXf3d ()
double call_2 (int row, int col)
java.lang.foreign.MemorySegment call_mut (int row, int col)
meshlib.Vector4d index (int row)
meshlib.Vector4d index_mut (int row)
meshlib.Vector4d col (int i)
double trace ()
double normSq ()
double norm ()
meshlib.Matrix3d submatrix3 (int i, int j)
double det ()
meshlib.Matrix4d inverse ()
meshlib.Matrix4d transposed ()
meshlib.Matrix3d getRotation ()
void setRotation (meshlib.Matrix3d rot)
meshlib.Vector3d getTranslation ()
void setTranslation (meshlib.Vector3d t)
java.lang.foreign.MemorySegment data_mut ()
java.lang.Double data ()
meshlib.Vector3d call_1 (meshlib.Vector3d b)
Public Member Functions inherited from meshlib.CppStruct
final java.lang.foreign.MemorySegment rawPointer ()

Static Public Member Functions

static meshlib.Matrix4d zero ()
static meshlib.Matrix4d identity ()
static meshlib.Matrix4d scale (double 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.Vector4d.LAYOUT, meshlib.Vector4d.LAYOUT, meshlib.Vector4d.LAYOUT, meshlib.Vector4d.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::Matrix4d.

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

Constructor & Destructor Documentation

◆ Matrix4d() [1/5]

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

◆ Matrix4d() [2/5]

meshlib.Matrix4d.Matrix4d ( )

Constructs an empty (default-constructed) instance.

Calls MR_Matrix4d_DefaultConstruct().

◆ Matrix4d() [3/5]

meshlib.Matrix4d.Matrix4d ( meshlib.Vector4d x,
meshlib.Vector4d y,
meshlib.Vector4d z,
meshlib.Vector4d w )

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

◆ Matrix4d() [4/5]

meshlib.Matrix4d.Matrix4d ( meshlib.Matrix3d r,
meshlib.Vector3d t )

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

◆ Matrix4d() [5/5]

meshlib.Matrix4d.Matrix4d ( meshlib.AffineXf3d 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::Matrix4d::Matrix4d. The reference to the parameter xf might be preserved in the constructed object.

Calls MR_Matrix4d_Construct_1().

Member Function Documentation

◆ call_1()

meshlib.Vector3d meshlib.Matrix4d.call_1 ( meshlib.Vector3d 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::Matrix4d::operator().

Calls MR_Matrix4d_call_1().

◆ call_2()

double meshlib.Matrix4d.call_2 ( int row,
int col )

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

Calls MR_Matrix4d_call_2().

◆ call_mut()

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

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

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

◆ col()

meshlib.Vector4d meshlib.Matrix4d.col ( int i)

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

Calls MR_Matrix4d_col().

◆ convertTo_MR_AffineXf3d()

meshlib.AffineXf3d meshlib.Matrix4d.convertTo_MR_AffineXf3d ( )

Generated from conversion operator MR::Matrix4d::operator MR::AffineXf3d.

Calls MR_Matrix4d_ConvertTo_MR_AffineXf3d().

◆ copy()

Matrix4d meshlib.Matrix4d.copy ( )

A copy of the struct, in its own memory.

◆ data()

java.lang.Double meshlib.Matrix4d.data ( )

Generated from method MR::Matrix4d::data.

Calls MR_Matrix4d_data().

◆ data_mut()

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

Generated from method MR::Matrix4d::data.

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

◆ det()

double meshlib.Matrix4d.det ( )

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

Calls MR_Matrix4d_det().

◆ getRotation()

meshlib.Matrix3d meshlib.Matrix4d.getRotation ( )

Generated from method MR::Matrix4d::getRotation.

Calls MR_Matrix4d_getRotation().

◆ getTranslation()

meshlib.Vector3d meshlib.Matrix4d.getTranslation ( )

Generated from method MR::Matrix4d::getTranslation.

Calls MR_Matrix4d_getTranslation().

◆ identity()

meshlib.Matrix4d meshlib.Matrix4d.identity ( )
static

Generated from method MR::Matrix4d::identity.

Calls MR_Matrix4d_identity().

◆ index()

meshlib.Vector4d meshlib.Matrix4d.index ( int row)

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

Calls MR_Matrix4d_index().

◆ index_mut()

meshlib.Vector4d meshlib.Matrix4d.index_mut ( int row)

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

Calls MR_Matrix4d_index_mut().

◆ inverse()

meshlib.Matrix4d meshlib.Matrix4d.inverse ( )

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

Calls MR_Matrix4d_inverse().

◆ norm()

double meshlib.Matrix4d.norm ( )

Generated from method MR::Matrix4d::norm.

Calls MR_Matrix4d_norm().

◆ normSq()

double meshlib.Matrix4d.normSq ( )

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

Calls MR_Matrix4d_normSq().

◆ scale()

meshlib.Matrix4d meshlib.Matrix4d.scale ( double s)
static

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

Calls MR_Matrix4d_scale().

◆ set()

void meshlib.Matrix4d.set ( Matrix4d other)

Overwrites the contents with those of another struct.

◆ setRotation()

void meshlib.Matrix4d.setRotation ( meshlib.Matrix3d rot)

Generated from method MR::Matrix4d::setRotation.

Calls MR_Matrix4d_setRotation().

◆ setTranslation()

void meshlib.Matrix4d.setTranslation ( meshlib.Vector3d t)

Generated from method MR::Matrix4d::setTranslation.

Calls MR_Matrix4d_setTranslation().

◆ setW()

void meshlib.Matrix4d.setW ( meshlib.Vector4d value)

◆ setX()

void meshlib.Matrix4d.setX ( meshlib.Vector4d value)

◆ setY()

void meshlib.Matrix4d.setY ( meshlib.Vector4d value)

◆ setZ()

void meshlib.Matrix4d.setZ ( meshlib.Vector4d value)

◆ submatrix3()

meshlib.Matrix3d meshlib.Matrix4d.submatrix3 ( int i,
int j )

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

Calls MR_Matrix4d_submatrix3().

◆ trace()

double meshlib.Matrix4d.trace ( )

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

Calls MR_Matrix4d_trace().

◆ transposed()

meshlib.Matrix4d meshlib.Matrix4d.transposed ( )

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

Calls MR_Matrix4d_transposed().

◆ w()

meshlib.Vector4d meshlib.Matrix4d.w ( )

◆ x()

meshlib.Vector4d meshlib.Matrix4d.x ( )

rows, identity matrix by default

◆ y()

meshlib.Vector4d meshlib.Matrix4d.y ( )

◆ z()

meshlib.Vector4d meshlib.Matrix4d.z ( )

◆ zero()

meshlib.Matrix4d meshlib.Matrix4d.zero ( )
static

Generated from method MR::Matrix4d::zero.

Calls MR_Matrix4d_zero().

Member Data Documentation

◆ LAYOUT

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

The native layout of the struct.

◆ OFF_w

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

◆ OFF_x

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

◆ OFF_y

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

◆ OFF_z

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

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