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

Public Member Functions

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

Static Public Member Functions

static meshlib.Matrix3i64 zero ()
static meshlib.Matrix3i64 identity ()
static meshlib.Matrix3i64 scale (long s)
static meshlib.Matrix3i64 scale (long sx, long sy, long sz)
static meshlib.Matrix3i64 scale (meshlib.Vector3i64 s)
static meshlib.Matrix3i64 fromRows (meshlib.Vector3i64 x, meshlib.Vector3i64 y, meshlib.Vector3i64 z)
static meshlib.Matrix3i64 fromColumns (meshlib.Vector3i64 x, meshlib.Vector3i64 y, meshlib.Vector3i64 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.Vector3i64.LAYOUT, meshlib.Vector3i64.LAYOUT, meshlib.Vector3i64.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::Matrix3i64.

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

Constructor & Destructor Documentation

◆ Matrix3i64() [1/3]

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

◆ Matrix3i64() [2/3]

meshlib.Matrix3i64.Matrix3i64 ( )

Constructs an empty (default-constructed) instance.

Calls MR_Matrix3i64_DefaultConstruct().

◆ Matrix3i64() [3/3]

meshlib.Matrix3i64.Matrix3i64 ( meshlib.Vector3i64 x,
meshlib.Vector3i64 y,
meshlib.Vector3i64 z )

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

Member Function Documentation

◆ col()

meshlib.Vector3i64 meshlib.Matrix3i64.col ( int i)

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

Calls MR_Matrix3i64_col().

◆ copy()

Matrix3i64 meshlib.Matrix3i64.copy ( )

A copy of the struct, in its own memory.

◆ det()

long meshlib.Matrix3i64.det ( )

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

Calls MR_Matrix3i64_det().

◆ fromColumns()

meshlib.Matrix3i64 meshlib.Matrix3i64.fromColumns ( meshlib.Vector3i64 x,
meshlib.Vector3i64 y,
meshlib.Vector3i64 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::Matrix3i64::fromColumns.

Calls MR_Matrix3i64_fromColumns().

◆ fromRows()

meshlib.Matrix3i64 meshlib.Matrix3i64.fromRows ( meshlib.Vector3i64 x,
meshlib.Vector3i64 y,
meshlib.Vector3i64 z )
static

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

Calls MR_Matrix3i64_fromRows().

◆ identity()

meshlib.Matrix3i64 meshlib.Matrix3i64.identity ( )
static

Generated from method MR::Matrix3i64::identity.

Calls MR_Matrix3i64_identity().

◆ index()

meshlib.Vector3i64 meshlib.Matrix3i64.index ( int row)

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

Calls MR_Matrix3i64_index().

◆ index_mut()

meshlib.Vector3i64 meshlib.Matrix3i64.index_mut ( int row)

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

Calls MR_Matrix3i64_index_mut().

◆ norm()

double meshlib.Matrix3i64.norm ( )

Generated from method MR::Matrix3i64::norm.

Calls MR_Matrix3i64_norm().

◆ normSq()

long meshlib.Matrix3i64.normSq ( )

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

Calls MR_Matrix3i64_normSq().

◆ scale() [1/3]

meshlib.Matrix3i64 meshlib.Matrix3i64.scale ( long s)
static

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

Calls MR_Matrix3i64_scale_1_int64_t().

◆ scale() [2/3]

meshlib.Matrix3i64 meshlib.Matrix3i64.scale ( long sx,
long sy,
long sz )
static

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

Calls MR_Matrix3i64_scale_3().

◆ scale() [3/3]

meshlib.Matrix3i64 meshlib.Matrix3i64.scale ( meshlib.Vector3i64 s)
static

Generated from method MR::Matrix3i64::scale.

Calls MR_Matrix3i64_scale_1_MR_Vector3i64().

◆ set()

void meshlib.Matrix3i64.set ( Matrix3i64 other)

Overwrites the contents with those of another struct.

◆ setX()

void meshlib.Matrix3i64.setX ( meshlib.Vector3i64 value)

◆ setY()

void meshlib.Matrix3i64.setY ( meshlib.Vector3i64 value)

◆ setZ()

void meshlib.Matrix3i64.setZ ( meshlib.Vector3i64 value)

◆ trace()

long meshlib.Matrix3i64.trace ( )

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

Calls MR_Matrix3i64_trace().

◆ transposed()

meshlib.Matrix3i64 meshlib.Matrix3i64.transposed ( )

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

Calls MR_Matrix3i64_transposed().

◆ x()

meshlib.Vector3i64 meshlib.Matrix3i64.x ( )

rows, identity matrix by default

◆ y()

meshlib.Vector3i64 meshlib.Matrix3i64.y ( )

◆ z()

meshlib.Vector3i64 meshlib.Matrix3i64.z ( )

◆ zero()

meshlib.Matrix3i64 meshlib.Matrix3i64.zero ( )
static

Generated from method MR::Matrix3i64::zero.

Calls MR_Matrix3i64_zero().

Member Data Documentation

◆ LAYOUT

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

The native layout of the struct.

◆ OFF_x

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

◆ OFF_y

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

◆ OFF_z

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

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