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

Public Member Functions

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

Static Public Member Functions

static meshlib.Vector2i64 diagonal (long a)
static meshlib.Vector2i64 plusX ()
static meshlib.Vector2i64 plusY ()
static meshlib.Vector2i64 minusX ()
static meshlib.Vector2i64 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_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"))

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::Vector2i64.

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

Constructor & Destructor Documentation

◆ Vector2i64() [1/4]

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

◆ Vector2i64() [2/4]

meshlib.Vector2i64.Vector2i64 ( )

Constructs an empty (default-constructed) instance.

Calls MR_Vector2i64_DefaultConstruct().

◆ Vector2i64() [3/4]

meshlib.Vector2i64.Vector2i64 ( meshlib.NoInit _1)

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

Calls MR_Vector2i64_Construct_1().

◆ Vector2i64() [4/4]

meshlib.Vector2i64.Vector2i64 ( long x,
long y )

Generated from constructor MR::Vector2i64::Vector2i64. 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.

Calls MR_Vector2i64_Construct_2().

Member Function Documentation

◆ copy()

Vector2i64 meshlib.Vector2i64.copy ( )

A copy of the struct, in its own memory.

◆ diagonal()

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

Generated from method MR::Vector2i64::diagonal.

Calls MR_Vector2i64_diagonal().

◆ elements()

int meshlib.Vector2i64.elements ( )
static

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

Calls MR_Vector2i64_Get_elements().

◆ furthestBasisVector()

meshlib.Vector2i64 meshlib.Vector2i64.furthestBasisVector ( )

returns one of 2 basis unit vector that makes the biggest angle with the direction specified by this Generated from method MR::Vector2i64::furthestBasisVector.

Calls MR_Vector2i64_furthestBasisVector().

◆ index()

long meshlib.Vector2i64.index ( int e)

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

Calls MR_Vector2i64_index().

◆ index_mut()

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

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

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

◆ length()

double meshlib.Vector2i64.length ( )

Generated from method MR::Vector2i64::length.

Calls MR_Vector2i64_length().

◆ lengthSq()

long meshlib.Vector2i64.lengthSq ( )

Generated from method MR::Vector2i64::lengthSq.

Calls MR_Vector2i64_lengthSq().

◆ minusX()

meshlib.Vector2i64 meshlib.Vector2i64.minusX ( )
static

Generated from method MR::Vector2i64::minusX.

Calls MR_Vector2i64_minusX().

◆ minusY()

meshlib.Vector2i64 meshlib.Vector2i64.minusY ( )
static

Generated from method MR::Vector2i64::minusY.

Calls MR_Vector2i64_minusY().

◆ perpendicular()

meshlib.Vector2i64 meshlib.Vector2i64.perpendicular ( )

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

Calls MR_Vector2i64_perpendicular().

◆ plusX()

meshlib.Vector2i64 meshlib.Vector2i64.plusX ( )
static

Generated from method MR::Vector2i64::plusX.

Calls MR_Vector2i64_plusX().

◆ plusY()

meshlib.Vector2i64 meshlib.Vector2i64.plusY ( )
static

Generated from method MR::Vector2i64::plusY.

Calls MR_Vector2i64_plusY().

◆ set()

void meshlib.Vector2i64.set ( Vector2i64 other)

Overwrites the contents with those of another struct.

◆ setX()

void meshlib.Vector2i64.setX ( long value)

◆ setY()

void meshlib.Vector2i64.setY ( long value)

◆ x()

long meshlib.Vector2i64.x ( )

◆ y()

long meshlib.Vector2i64.y ( )

Member Data Documentation

◆ LAYOUT

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

The native layout of the struct.

◆ OFF_x

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

◆ OFF_y

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

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