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

Public Member Functions

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

Static Public Member Functions

static meshlib.Vector2i diagonal (int a)
static meshlib.Vector2i plusX ()
static meshlib.Vector2i plusY ()
static meshlib.Vector2i minusX ()
static meshlib.Vector2i minusY ()
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_INT, java.lang.foreign.ValueLayout.JAVA_INT})
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

Generated from class MR::Vector2i.

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

Constructor & Destructor Documentation

◆ Vector2i() [1/4]

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

◆ Vector2i() [2/4]

meshlib.Vector2i.Vector2i ( )

Constructs an empty (default-constructed) instance.

Calls MR_Vector2i_DefaultConstruct().

◆ Vector2i() [3/4]

meshlib.Vector2i.Vector2i ( meshlib.NoInit _1)

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

Calls MR_Vector2i_Construct_1().

◆ Vector2i() [4/4]

meshlib.Vector2i.Vector2i ( int x,
int y )

Generated from constructor MR::Vector2i::Vector2i.

Calls MR_Vector2i_Construct_2().

Member Function Documentation

◆ copy()

Vector2i meshlib.Vector2i.copy ( )

A copy of the struct, in its own memory.

◆ diagonal()

meshlib.Vector2i meshlib.Vector2i.diagonal ( int a)
static

Generated from method MR::Vector2i::diagonal.

Calls MR_Vector2i_diagonal().

◆ elements()

int meshlib.Vector2i.elements ( )
static

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

Calls MR_Vector2i_Get_elements().

◆ furthestBasisVector()

meshlib.Vector2i meshlib.Vector2i.furthestBasisVector ( )

Generated from method MR::Vector2i::furthestBasisVector.

Calls MR_Vector2i_furthestBasisVector().

◆ index()

int meshlib.Vector2i.index ( int e)

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

Calls MR_Vector2i_index().

◆ index_mut()

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

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

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

◆ length()

double meshlib.Vector2i.length ( )

Generated from method MR::Vector2i::length.

Calls MR_Vector2i_length().

◆ lengthSq()

int meshlib.Vector2i.lengthSq ( )

Generated from method MR::Vector2i::lengthSq.

Calls MR_Vector2i_lengthSq().

◆ minusX()

meshlib.Vector2i meshlib.Vector2i.minusX ( )
static

Generated from method MR::Vector2i::minusX.

Calls MR_Vector2i_minusX().

◆ minusY()

meshlib.Vector2i meshlib.Vector2i.minusY ( )
static

Generated from method MR::Vector2i::minusY.

Calls MR_Vector2i_minusY().

◆ perpendicular()

meshlib.Vector2i meshlib.Vector2i.perpendicular ( )

returns same length vector orthogonal to this (rotated 90 degrees counter-clockwise) Generated from method MR::Vector2i::perpendicular.

Calls MR_Vector2i_perpendicular().

◆ plusX()

meshlib.Vector2i meshlib.Vector2i.plusX ( )
static

Generated from method MR::Vector2i::plusX.

Calls MR_Vector2i_plusX().

◆ plusY()

meshlib.Vector2i meshlib.Vector2i.plusY ( )
static

Generated from method MR::Vector2i::plusY.

Calls MR_Vector2i_plusY().

◆ set()

void meshlib.Vector2i.set ( Vector2i other)

Overwrites the contents with those of another struct.

◆ setX()

void meshlib.Vector2i.setX ( int value)

◆ setY()

void meshlib.Vector2i.setY ( int value)

◆ x()

int meshlib.Vector2i.x ( )

◆ y()

int meshlib.Vector2i.y ( )

Member Data Documentation

◆ LAYOUT

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

The native layout of the struct.

◆ OFF_x

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

◆ OFF_y

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

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