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

Public Member Functions

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

Static Public Member Functions

static meshlib.Vector4i diagonal (int a)
static int elements ()

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

four-dimensional vector Generated from class MR::Vector4i.

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

Constructor & Destructor Documentation

◆ Vector4i() [1/4]

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

◆ Vector4i() [2/4]

meshlib.Vector4i.Vector4i ( )

Constructs an empty (default-constructed) instance.

Calls MR_Vector4i_DefaultConstruct().

◆ Vector4i() [3/4]

meshlib.Vector4i.Vector4i ( meshlib.NoInit _1)

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

Calls MR_Vector4i_Construct_1().

◆ Vector4i() [4/4]

meshlib.Vector4i.Vector4i ( int x,
int y,
int z,
int w )

Generated from constructor MR::Vector4i::Vector4i.

Calls MR_Vector4i_Construct_4().

Member Function Documentation

◆ copy()

Vector4i meshlib.Vector4i.copy ( )

A copy of the struct, in its own memory.

◆ diagonal()

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

Generated from method MR::Vector4i::diagonal.

Calls MR_Vector4i_diagonal().

◆ elements()

int meshlib.Vector4i.elements ( )
static

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

Calls MR_Vector4i_Get_elements().

◆ index()

int meshlib.Vector4i.index ( int e)

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

Calls MR_Vector4i_index().

◆ index_mut()

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

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

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

◆ length()

double meshlib.Vector4i.length ( )

Generated from method MR::Vector4i::length.

Calls MR_Vector4i_length().

◆ lengthSq()

int meshlib.Vector4i.lengthSq ( )

Generated from method MR::Vector4i::lengthSq.

Calls MR_Vector4i_lengthSq().

◆ set()

void meshlib.Vector4i.set ( Vector4i other)

Overwrites the contents with those of another struct.

◆ setW()

void meshlib.Vector4i.setW ( int value)

◆ setX()

void meshlib.Vector4i.setX ( int value)

◆ setY()

void meshlib.Vector4i.setY ( int value)

◆ setZ()

void meshlib.Vector4i.setZ ( int value)

◆ w()

int meshlib.Vector4i.w ( )

◆ x()

int meshlib.Vector4i.x ( )

◆ y()

int meshlib.Vector4i.y ( )

◆ z()

int meshlib.Vector4i.z ( )

Member Data Documentation

◆ LAYOUT

final java.lang.foreign.StructLayout meshlib.Vector4i.LAYOUT = meshlib.Ffi.structLayout(new java.lang.String[]{"x", "y", "z", "w"}, new java.lang.foreign.MemoryLayout[]{java.lang.foreign.ValueLayout.JAVA_INT, 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_w

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

◆ OFF_x

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

◆ OFF_y

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

◆ OFF_z

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

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