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

Public Member Functions

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

Static Public Attributes

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

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

two-dimensional vector Generated from class MR::Vector2b.

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

Constructor & Destructor Documentation

◆ Vector2b() [1/4]

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

◆ Vector2b() [2/4]

meshlib.Vector2b.Vector2b ( )

Constructs an empty (default-constructed) instance.

Calls MR_Vector2b_DefaultConstruct().

◆ Vector2b() [3/4]

meshlib.Vector2b.Vector2b ( meshlib.NoInit _1)

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

Calls MR_Vector2b_Construct_1().

◆ Vector2b() [4/4]

meshlib.Vector2b.Vector2b ( boolean x,
boolean y )

Generated from constructor MR::Vector2b::Vector2b.

Calls MR_Vector2b_Construct_2().

Member Function Documentation

◆ copy()

Vector2b meshlib.Vector2b.copy ( )

A copy of the struct, in its own memory.

◆ diagonal()

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

Generated from method MR::Vector2b::diagonal.

Calls MR_Vector2b_diagonal().

◆ elements()

int meshlib.Vector2b.elements ( )
static

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

Calls MR_Vector2b_Get_elements().

◆ index()

boolean meshlib.Vector2b.index ( int e)

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

Calls MR_Vector2b_index().

◆ index_mut()

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

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

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

◆ length()

double meshlib.Vector2b.length ( )

Generated from method MR::Vector2b::length.

Calls MR_Vector2b_length().

◆ lengthSq()

int meshlib.Vector2b.lengthSq ( )

Generated from method MR::Vector2b::lengthSq.

Calls MR_Vector2b_lengthSq().

◆ plusX()

meshlib.Vector2b meshlib.Vector2b.plusX ( )
static

Generated from method MR::Vector2b::plusX.

Calls MR_Vector2b_plusX().

◆ plusY()

meshlib.Vector2b meshlib.Vector2b.plusY ( )
static

Generated from method MR::Vector2b::plusY.

Calls MR_Vector2b_plusY().

◆ set()

void meshlib.Vector2b.set ( Vector2b other)

Overwrites the contents with those of another struct.

◆ setX()

void meshlib.Vector2b.setX ( boolean value)

◆ setY()

void meshlib.Vector2b.setY ( boolean value)

◆ x()

boolean meshlib.Vector2b.x ( )

◆ y()

boolean meshlib.Vector2b.y ( )

Member Data Documentation

◆ LAYOUT

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

The native layout of the struct.

◆ OFF_x

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

◆ OFF_y

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

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