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

Public Member Functions

 Vector3i (java.lang.foreign.MemorySegment segment, java.lang.Object owner)
Vector3i copy ()
void set (Vector3i other)
int x ()
void setX (int value)
int y ()
void setY (int value)
int z ()
void setZ (int value)
 Vector3i ()
 Vector3i (meshlib.NoInit _1)
 Vector3i (int x, int y, int z)
 Vector3i (meshlib.Vector3f v)
int index (int e)
java.lang.foreign.MemorySegment index_mut (int e)
int lengthSq ()
double length ()
meshlib.Vector3i furthestBasisVector ()
Public Member Functions inherited from meshlib.CppStruct
final java.lang.foreign.MemorySegment rawPointer ()

Static Public Member Functions

static meshlib.Vector3i diagonal (int a)
static meshlib.Vector3i plusX ()
static meshlib.Vector3i plusY ()
static meshlib.Vector3i plusZ ()
static meshlib.Vector3i minusX ()
static meshlib.Vector3i minusY ()
static meshlib.Vector3i minusZ ()
static int elements ()

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[]{java.lang.foreign.ValueLayout.JAVA_INT, java.lang.foreign.ValueLayout.JAVA_INT, java.lang.foreign.ValueLayout.JAVA_INT})
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

Generated from class MR::Vector3i.

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

Constructor & Destructor Documentation

◆ Vector3i() [1/5]

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

◆ Vector3i() [2/5]

meshlib.Vector3i.Vector3i ( )

Constructs an empty (default-constructed) instance.

Calls MR_Vector3i_DefaultConstruct().

◆ Vector3i() [3/5]

meshlib.Vector3i.Vector3i ( meshlib.NoInit _1)

Generated from constructor MR::Vector3i::Vector3i. The reference to the parameter _1 might be preserved in the constructed object.

Calls MR_Vector3i_Construct_MR_NoInit().

◆ Vector3i() [4/5]

meshlib.Vector3i.Vector3i ( int x,
int y,
int z )

Generated from constructor MR::Vector3i::Vector3i.

Calls MR_Vector3i_Construct().

◆ Vector3i() [5/5]

meshlib.Vector3i.Vector3i ( meshlib.Vector3f v)

Here T == U doesn't seem to cause any issues in the C++ code, but we're still disabling it because it somehow gets emitted when generating the bindings, and looks out of place there. Generated from constructor MR::Vector3i::Vector3i. The reference to the parameter v might be preserved in the constructed object.

Calls MR_Vector3i_Construct_float().

Member Function Documentation

◆ copy()

Vector3i meshlib.Vector3i.copy ( )

A copy of the struct, in its own memory.

◆ diagonal()

meshlib.Vector3i meshlib.Vector3i.diagonal ( int a)
static

Generated from method MR::Vector3i::diagonal.

Calls MR_Vector3i_diagonal().

◆ elements()

int meshlib.Vector3i.elements ( )
static

Returns a pointer to a member variable of class MR::Vector3i named elements.

Calls MR_Vector3i_Get_elements().

◆ furthestBasisVector()

meshlib.Vector3i meshlib.Vector3i.furthestBasisVector ( )

Generated from method MR::Vector3i::furthestBasisVector.

Calls MR_Vector3i_furthestBasisVector().

◆ index()

int meshlib.Vector3i.index ( int e)

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

Calls MR_Vector3i_index().

◆ index_mut()

java.lang.foreign.MemorySegment meshlib.Vector3i.index_mut ( int e)

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

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

◆ length()

double meshlib.Vector3i.length ( )

Generated from method MR::Vector3i::length.

Calls MR_Vector3i_length().

◆ lengthSq()

int meshlib.Vector3i.lengthSq ( )

Generated from method MR::Vector3i::lengthSq.

Calls MR_Vector3i_lengthSq().

◆ minusX()

meshlib.Vector3i meshlib.Vector3i.minusX ( )
static

Generated from method MR::Vector3i::minusX.

Calls MR_Vector3i_minusX().

◆ minusY()

meshlib.Vector3i meshlib.Vector3i.minusY ( )
static

Generated from method MR::Vector3i::minusY.

Calls MR_Vector3i_minusY().

◆ minusZ()

meshlib.Vector3i meshlib.Vector3i.minusZ ( )
static

Generated from method MR::Vector3i::minusZ.

Calls MR_Vector3i_minusZ().

◆ plusX()

meshlib.Vector3i meshlib.Vector3i.plusX ( )
static

Generated from method MR::Vector3i::plusX.

Calls MR_Vector3i_plusX().

◆ plusY()

meshlib.Vector3i meshlib.Vector3i.plusY ( )
static

Generated from method MR::Vector3i::plusY.

Calls MR_Vector3i_plusY().

◆ plusZ()

meshlib.Vector3i meshlib.Vector3i.plusZ ( )
static

Generated from method MR::Vector3i::plusZ.

Calls MR_Vector3i_plusZ().

◆ set()

void meshlib.Vector3i.set ( Vector3i other)

Overwrites the contents with those of another struct.

◆ setX()

void meshlib.Vector3i.setX ( int value)

◆ setY()

void meshlib.Vector3i.setY ( int value)

◆ setZ()

void meshlib.Vector3i.setZ ( int value)

◆ x()

int meshlib.Vector3i.x ( )

◆ y()

int meshlib.Vector3i.y ( )

◆ z()

int meshlib.Vector3i.z ( )

Member Data Documentation

◆ LAYOUT

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

The native layout of the struct.

◆ OFF_x

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

◆ OFF_y

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

◆ OFF_z

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

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