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 |
Generated from class MR::Vector2i.
Has the same layout as the C++ struct, the fields are accessed in place in native memory.
| 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.
| meshlib.Vector2i.Vector2i | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_Vector2i_DefaultConstruct().
| 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().
| meshlib.Vector2i.Vector2i | ( | int | x, |
| int | y ) |
Generated from constructor MR::Vector2i::Vector2i.
Calls MR_Vector2i_Construct_2().
| Vector2i meshlib.Vector2i.copy | ( | ) |
A copy of the struct, in its own memory.
|
static |
Generated from method MR::Vector2i::diagonal.
Calls MR_Vector2i_diagonal().
|
static |
Returns a pointer to a member variable of class MR::Vector2i named elements.
Calls MR_Vector2i_Get_elements().
| meshlib.Vector2i meshlib.Vector2i.furthestBasisVector | ( | ) |
Generated from method MR::Vector2i::furthestBasisVector.
Calls MR_Vector2i_furthestBasisVector().
| int meshlib.Vector2i.index | ( | int | e | ) |
Generated from method MR::Vector2i::operator[].
Calls MR_Vector2i_index().
| 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.
| double meshlib.Vector2i.length | ( | ) |
Generated from method MR::Vector2i::length.
Calls MR_Vector2i_length().
| int meshlib.Vector2i.lengthSq | ( | ) |
Generated from method MR::Vector2i::lengthSq.
Calls MR_Vector2i_lengthSq().
|
static |
Generated from method MR::Vector2i::minusX.
Calls MR_Vector2i_minusX().
|
static |
Generated from method MR::Vector2i::minusY.
Calls MR_Vector2i_minusY().
| 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().
|
static |
Generated from method MR::Vector2i::plusX.
Calls MR_Vector2i_plusX().
|
static |
Generated from method MR::Vector2i::plusY.
Calls MR_Vector2i_plusY().
| void meshlib.Vector2i.set | ( | Vector2i | other | ) |
Overwrites the contents with those of another struct.
| void meshlib.Vector2i.setX | ( | int | value | ) |
| void meshlib.Vector2i.setY | ( | int | value | ) |
| int meshlib.Vector2i.x | ( | ) |
| int meshlib.Vector2i.y | ( | ) |
|
static |
The native layout of the struct.
|
static |
|
static |