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

Public Member Functions

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

Static Public Member Functions

static meshlib.Vector4i64 diagonal (long 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_LONG, java.lang.foreign.ValueLayout.JAVA_LONG, java.lang.foreign.ValueLayout.JAVA_LONG, java.lang.foreign.ValueLayout.JAVA_LONG})
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::Vector4i64.

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

Constructor & Destructor Documentation

◆ Vector4i64() [1/4]

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

◆ Vector4i64() [2/4]

meshlib.Vector4i64.Vector4i64 ( )

Constructs an empty (default-constructed) instance.

Calls MR_Vector4i64_DefaultConstruct().

◆ Vector4i64() [3/4]

meshlib.Vector4i64.Vector4i64 ( meshlib.NoInit _1)

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

Calls MR_Vector4i64_Construct_1().

◆ Vector4i64() [4/4]

meshlib.Vector4i64.Vector4i64 ( long x,
long y,
long z,
long w )

Generated from constructor MR::Vector4i64::Vector4i64. 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_Vector4i64_Construct_4().

Member Function Documentation

◆ copy()

Vector4i64 meshlib.Vector4i64.copy ( )

A copy of the struct, in its own memory.

◆ diagonal()

meshlib.Vector4i64 meshlib.Vector4i64.diagonal ( long a)
static

Generated from method MR::Vector4i64::diagonal.

Calls MR_Vector4i64_diagonal().

◆ elements()

int meshlib.Vector4i64.elements ( )
static

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

Calls MR_Vector4i64_Get_elements().

◆ index()

long meshlib.Vector4i64.index ( int e)

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

Calls MR_Vector4i64_index().

◆ index_mut()

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

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

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

◆ length()

double meshlib.Vector4i64.length ( )

Generated from method MR::Vector4i64::length.

Calls MR_Vector4i64_length().

◆ lengthSq()

long meshlib.Vector4i64.lengthSq ( )

Generated from method MR::Vector4i64::lengthSq.

Calls MR_Vector4i64_lengthSq().

◆ set()

void meshlib.Vector4i64.set ( Vector4i64 other)

Overwrites the contents with those of another struct.

◆ setW()

void meshlib.Vector4i64.setW ( long value)

◆ setX()

void meshlib.Vector4i64.setX ( long value)

◆ setY()

void meshlib.Vector4i64.setY ( long value)

◆ setZ()

void meshlib.Vector4i64.setZ ( long value)

◆ w()

long meshlib.Vector4i64.w ( )

◆ x()

long meshlib.Vector4i64.x ( )

◆ y()

long meshlib.Vector4i64.y ( )

◆ z()

long meshlib.Vector4i64.z ( )

Member Data Documentation

◆ LAYOUT

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

The native layout of the struct.

◆ OFF_w

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

◆ OFF_x

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

◆ OFF_y

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

◆ OFF_z

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

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