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

Public Member Functions

 Vector3b (java.lang.foreign.MemorySegment segment, java.lang.Object owner)
Vector3b copy ()
void set (Vector3b other)
boolean x ()
void setX (boolean value)
boolean y ()
void setY (boolean value)
boolean z ()
void setZ (boolean value)
 Vector3b ()
 Vector3b (meshlib.NoInit _1)
 Vector3b (boolean x, boolean y, boolean z)
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.Vector3b diagonal (boolean a)
static meshlib.Vector3b plusX ()
static meshlib.Vector3b plusY ()
static meshlib.Vector3b plusZ ()
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_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"))

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

three-dimensional vector Generated from class MR::Vector3b.

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

Constructor & Destructor Documentation

◆ Vector3b() [1/4]

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

◆ Vector3b() [2/4]

meshlib.Vector3b.Vector3b ( )

Constructs an empty (default-constructed) instance.

Calls MR_Vector3b_DefaultConstruct().

◆ Vector3b() [3/4]

meshlib.Vector3b.Vector3b ( meshlib.NoInit _1)

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

Calls MR_Vector3b_Construct_MR_NoInit().

◆ Vector3b() [4/4]

meshlib.Vector3b.Vector3b ( boolean x,
boolean y,
boolean z )

Generated from constructor MR::Vector3b::Vector3b.

Calls MR_Vector3b_Construct().

Member Function Documentation

◆ copy()

Vector3b meshlib.Vector3b.copy ( )

A copy of the struct, in its own memory.

◆ diagonal()

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

Generated from method MR::Vector3b::diagonal.

Calls MR_Vector3b_diagonal().

◆ elements()

int meshlib.Vector3b.elements ( )
static

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

Calls MR_Vector3b_Get_elements().

◆ index()

boolean meshlib.Vector3b.index ( int e)

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

Calls MR_Vector3b_index().

◆ index_mut()

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

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

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

◆ length()

double meshlib.Vector3b.length ( )

Generated from method MR::Vector3b::length.

Calls MR_Vector3b_length().

◆ lengthSq()

int meshlib.Vector3b.lengthSq ( )

Generated from method MR::Vector3b::lengthSq.

Calls MR_Vector3b_lengthSq().

◆ plusX()

meshlib.Vector3b meshlib.Vector3b.plusX ( )
static

Generated from method MR::Vector3b::plusX.

Calls MR_Vector3b_plusX().

◆ plusY()

meshlib.Vector3b meshlib.Vector3b.plusY ( )
static

Generated from method MR::Vector3b::plusY.

Calls MR_Vector3b_plusY().

◆ plusZ()

meshlib.Vector3b meshlib.Vector3b.plusZ ( )
static

Generated from method MR::Vector3b::plusZ.

Calls MR_Vector3b_plusZ().

◆ set()

void meshlib.Vector3b.set ( Vector3b other)

Overwrites the contents with those of another struct.

◆ setX()

void meshlib.Vector3b.setX ( boolean value)

◆ setY()

void meshlib.Vector3b.setY ( boolean value)

◆ setZ()

void meshlib.Vector3b.setZ ( boolean value)

◆ x()

boolean meshlib.Vector3b.x ( )

◆ y()

boolean meshlib.Vector3b.y ( )

◆ z()

boolean meshlib.Vector3b.z ( )

Member Data Documentation

◆ LAYOUT

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

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

◆ OFF_y

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

◆ OFF_z

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

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