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 |
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.
| 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.
| meshlib.Vector2b.Vector2b | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_Vector2b_DefaultConstruct().
| 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().
| meshlib.Vector2b.Vector2b | ( | boolean | x, |
| boolean | y ) |
Generated from constructor MR::Vector2b::Vector2b.
Calls MR_Vector2b_Construct_2().
| Vector2b meshlib.Vector2b.copy | ( | ) |
A copy of the struct, in its own memory.
|
static |
Generated from method MR::Vector2b::diagonal.
Calls MR_Vector2b_diagonal().
|
static |
Returns a pointer to a member variable of class MR::Vector2b named elements.
Calls MR_Vector2b_Get_elements().
| boolean meshlib.Vector2b.index | ( | int | e | ) |
Generated from method MR::Vector2b::operator[].
Calls MR_Vector2b_index().
| 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.
| double meshlib.Vector2b.length | ( | ) |
Generated from method MR::Vector2b::length.
Calls MR_Vector2b_length().
| int meshlib.Vector2b.lengthSq | ( | ) |
Generated from method MR::Vector2b::lengthSq.
Calls MR_Vector2b_lengthSq().
|
static |
Generated from method MR::Vector2b::plusX.
Calls MR_Vector2b_plusX().
|
static |
Generated from method MR::Vector2b::plusY.
Calls MR_Vector2b_plusY().
| void meshlib.Vector2b.set | ( | Vector2b | other | ) |
Overwrites the contents with those of another struct.
| void meshlib.Vector2b.setX | ( | boolean | value | ) |
| void meshlib.Vector2b.setY | ( | boolean | value | ) |
| boolean meshlib.Vector2b.x | ( | ) |
| boolean meshlib.Vector2b.y | ( | ) |
|
static |
The native layout of the struct.
|
static |
|
static |