Public Member Functions | |
| Vector2f (java.lang.foreign.MemorySegment segment, java.lang.Object owner) | |
| Vector2f | copy () |
| void | set (Vector2f other) |
| float | x () |
| void | setX (float value) |
| float | y () |
| void | setY (float value) |
| Vector2f () | |
| Vector2f (meshlib.NoInit _1) | |
| Vector2f (float x, float y) | |
| float | index (int e) |
| java.lang.foreign.MemorySegment | index_mut (int e) |
| float | lengthSq () |
| float | length () |
| meshlib.Vector2f | normalized () |
| meshlib.Vector2f | furthestBasisVector () |
| meshlib.Vector2f | perpendicular () |
| boolean | isFinite () |
| Public Member Functions inherited from meshlib.CppStruct | |
| final java.lang.foreign.MemorySegment | rawPointer () |
Static Public Member Functions | |
| static meshlib.Vector2f | diagonal (float a) |
| static meshlib.Vector2f | plusX () |
| static meshlib.Vector2f | plusY () |
| static meshlib.Vector2f | minusX () |
| static meshlib.Vector2f | 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_FLOAT, java.lang.foreign.ValueLayout.JAVA_FLOAT}) |
| 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::Vector2f.
Has the same layout as the C++ struct, the fields are accessed in place in native memory.
| meshlib.Vector2f.Vector2f | ( | 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.Vector2f.Vector2f | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_Vector2f_DefaultConstruct().
| meshlib.Vector2f.Vector2f | ( | meshlib.NoInit | _1 | ) |
Generated from constructor MR::Vector2f::Vector2f. The reference to the parameter _1 might be preserved in the constructed object.
Calls MR_Vector2f_Construct_1().
| meshlib.Vector2f.Vector2f | ( | float | x, |
| float | y ) |
Generated from constructor MR::Vector2f::Vector2f.
Calls MR_Vector2f_Construct_2().
| Vector2f meshlib.Vector2f.copy | ( | ) |
A copy of the struct, in its own memory.
|
static |
Generated from method MR::Vector2f::diagonal.
Calls MR_Vector2f_diagonal().
|
static |
Returns a pointer to a member variable of class MR::Vector2f named elements.
Calls MR_Vector2f_Get_elements().
| meshlib.Vector2f meshlib.Vector2f.furthestBasisVector | ( | ) |
Generated from method MR::Vector2f::furthestBasisVector.
Calls MR_Vector2f_furthestBasisVector().
| float meshlib.Vector2f.index | ( | int | e | ) |
Generated from method MR::Vector2f::operator[].
Calls MR_Vector2f_index().
| java.lang.foreign.MemorySegment meshlib.Vector2f.index_mut | ( | int | e | ) |
Generated from method MR::Vector2f::operator[].
Calls MR_Vector2f_index_mut(). Some types are raw C types, see the C bindings for the details.
| boolean meshlib.Vector2f.isFinite | ( | ) |
Generated from method MR::Vector2f::isFinite.
Calls MR_Vector2f_isFinite().
| float meshlib.Vector2f.length | ( | ) |
Generated from method MR::Vector2f::length.
Calls MR_Vector2f_length().
| float meshlib.Vector2f.lengthSq | ( | ) |
Generated from method MR::Vector2f::lengthSq.
Calls MR_Vector2f_lengthSq().
|
static |
Generated from method MR::Vector2f::minusX.
Calls MR_Vector2f_minusX().
|
static |
Generated from method MR::Vector2f::minusY.
Calls MR_Vector2f_minusY().
| meshlib.Vector2f meshlib.Vector2f.normalized | ( | ) |
Generated from method MR::Vector2f::normalized.
Calls MR_Vector2f_normalized().
| meshlib.Vector2f meshlib.Vector2f.perpendicular | ( | ) |
returns same length vector orthogonal to this (rotated 90 degrees counter-clockwise) Generated from method MR::Vector2f::perpendicular.
Calls MR_Vector2f_perpendicular().
|
static |
Generated from method MR::Vector2f::plusX.
Calls MR_Vector2f_plusX().
|
static |
Generated from method MR::Vector2f::plusY.
Calls MR_Vector2f_plusY().
| void meshlib.Vector2f.set | ( | Vector2f | other | ) |
Overwrites the contents with those of another struct.
| void meshlib.Vector2f.setX | ( | float | value | ) |
| void meshlib.Vector2f.setY | ( | float | value | ) |
| float meshlib.Vector2f.x | ( | ) |
| float meshlib.Vector2f.y | ( | ) |
|
static |
The native layout of the struct.
|
static |
|
static |