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

Public Member Functions

 Vector4b (java.lang.foreign.MemorySegment segment, java.lang.Object owner)
Vector4b copy ()
void set (Vector4b other)
boolean x ()
void setX (boolean value)
boolean y ()
void setY (boolean value)
boolean z ()
void setZ (boolean value)
boolean w ()
void setW (boolean value)
 Vector4b ()
 Vector4b (meshlib.NoInit _1)
 Vector4b (boolean x, boolean y, boolean z, boolean w)
boolean 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.Vector4b diagonal (boolean 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_BOOLEAN, java.lang.foreign.ValueLayout.JAVA_BOOLEAN, java.lang.foreign.ValueLayout.JAVA_BOOLEAN, java.lang.foreign.ValueLayout.JAVA_BOOLEAN})
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::Vector4b.

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

Constructor & Destructor Documentation

◆ Vector4b() [1/4]

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

◆ Vector4b() [2/4]

meshlib.Vector4b.Vector4b ( )

Constructs an empty (default-constructed) instance.

Calls MR_Vector4b_DefaultConstruct().

◆ Vector4b() [3/4]

meshlib.Vector4b.Vector4b ( meshlib.NoInit _1)

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

Calls MR_Vector4b_Construct_1().

◆ Vector4b() [4/4]

meshlib.Vector4b.Vector4b ( boolean x,
boolean y,
boolean z,
boolean w )

Generated from constructor MR::Vector4b::Vector4b.

Calls MR_Vector4b_Construct_4().

Member Function Documentation

◆ copy()

Vector4b meshlib.Vector4b.copy ( )

A copy of the struct, in its own memory.

◆ diagonal()

meshlib.Vector4b meshlib.Vector4b.diagonal ( boolean a)
static

Generated from method MR::Vector4b::diagonal.

Calls MR_Vector4b_diagonal().

◆ elements()

int meshlib.Vector4b.elements ( )
static

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

Calls MR_Vector4b_Get_elements().

◆ index()

boolean meshlib.Vector4b.index ( int e)

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

Calls MR_Vector4b_index().

◆ index_mut()

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

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

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

◆ length()

double meshlib.Vector4b.length ( )

Generated from method MR::Vector4b::length.

Calls MR_Vector4b_length().

◆ lengthSq()

int meshlib.Vector4b.lengthSq ( )

Generated from method MR::Vector4b::lengthSq.

Calls MR_Vector4b_lengthSq().

◆ set()

void meshlib.Vector4b.set ( Vector4b other)

Overwrites the contents with those of another struct.

◆ setW()

void meshlib.Vector4b.setW ( boolean value)

◆ setX()

void meshlib.Vector4b.setX ( boolean value)

◆ setY()

void meshlib.Vector4b.setY ( boolean value)

◆ setZ()

void meshlib.Vector4b.setZ ( boolean value)

◆ w()

boolean meshlib.Vector4b.w ( )

◆ x()

boolean meshlib.Vector4b.x ( )

◆ y()

boolean meshlib.Vector4b.y ( )

◆ z()

boolean meshlib.Vector4b.z ( )

Member Data Documentation

◆ LAYOUT

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

The native layout of the struct.

◆ OFF_w

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

◆ OFF_x

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

◆ OFF_y

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

◆ OFF_z

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

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