MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.std_array_MR_Vector2f_3 Class Reference
Inheritance diagram for meshlib.std_array_MR_Vector2f_3:

Public Member Functions

 std_array_MR_Vector2f_3 (java.lang.foreign.MemorySegment segment, java.lang.Object owner)
std_array_MR_Vector2f_3 copy ()
void set (std_array_MR_Vector2f_3 other)
meshlib.Vector2f elems (int i0)
void setElems (int i0, meshlib.Vector2f value)
 std_array_MR_Vector2f_3 ()
Public Member Functions inherited from meshlib.CppStruct
final java.lang.foreign.MemorySegment rawPointer ()

Static Public Attributes

static final java.lang.foreign.StructLayout LAYOUT = meshlib.Ffi.structLayout(new java.lang.String[]{"elems"}, new java.lang.foreign.MemoryLayout[]{java.lang.foreign.MemoryLayout.sequenceLayout(3, meshlib.Vector2f.LAYOUT)})
static final long OFF_elems = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("elems"))

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

A fixed-size array of MR::Vector2f of size 3.

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

Constructor & Destructor Documentation

◆ std_array_MR_Vector2f_3() [1/2]

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

◆ std_array_MR_Vector2f_3() [2/2]

meshlib.std_array_MR_Vector2f_3.std_array_MR_Vector2f_3 ( )

Zero-initialized.

Member Function Documentation

◆ copy()

std_array_MR_Vector2f_3 meshlib.std_array_MR_Vector2f_3.copy ( )

A copy of the struct, in its own memory.

◆ elems()

meshlib.Vector2f meshlib.std_array_MR_Vector2f_3.elems ( int i0)

◆ set()

void meshlib.std_array_MR_Vector2f_3.set ( std_array_MR_Vector2f_3 other)

Overwrites the contents with those of another struct.

◆ setElems()

void meshlib.std_array_MR_Vector2f_3.setElems ( int i0,
meshlib.Vector2f value )

Member Data Documentation

◆ LAYOUT

final java.lang.foreign.StructLayout meshlib.std_array_MR_Vector2f_3.LAYOUT = meshlib.Ffi.structLayout(new java.lang.String[]{"elems"}, new java.lang.foreign.MemoryLayout[]{java.lang.foreign.MemoryLayout.sequenceLayout(3, meshlib.Vector2f.LAYOUT)})
static

The native layout of the struct.

◆ OFF_elems

final long meshlib.std_array_MR_Vector2f_3.OFF_elems = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("elems"))
static

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