Public Member Functions | |
| Vector4i (java.lang.foreign.MemorySegment segment, java.lang.Object owner) | |
| Vector4i | copy () |
| void | set (Vector4i other) |
| int | x () |
| void | setX (int value) |
| int | y () |
| void | setY (int value) |
| int | z () |
| void | setZ (int value) |
| int | w () |
| void | setW (int value) |
| Vector4i () | |
| Vector4i (meshlib.NoInit _1) | |
| Vector4i (int x, int y, int z, int w) | |
| int | 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.Vector4i | diagonal (int a) |
| static int | elements () |
Static Public Attributes | |
| static final java.lang.foreign.StructLayout | LAYOUT = meshlib.Ffi.structLayout(new java.lang.String[]{"x", "y", "z", "w"}, new java.lang.foreign.MemoryLayout[]{java.lang.foreign.ValueLayout.JAVA_INT, java.lang.foreign.ValueLayout.JAVA_INT, 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")) |
| static final long | OFF_z = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("z")) |
| static final long | OFF_w = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("w")) |
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 |
four-dimensional vector Generated from class MR::Vector4i.
Has the same layout as the C++ struct, the fields are accessed in place in native memory.
| meshlib.Vector4i.Vector4i | ( | 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.Vector4i.Vector4i | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_Vector4i_DefaultConstruct().
| meshlib.Vector4i.Vector4i | ( | meshlib.NoInit | _1 | ) |
Generated from constructor MR::Vector4i::Vector4i. The reference to the parameter _1 might be preserved in the constructed object.
Calls MR_Vector4i_Construct_1().
| meshlib.Vector4i.Vector4i | ( | int | x, |
| int | y, | ||
| int | z, | ||
| int | w ) |
Generated from constructor MR::Vector4i::Vector4i.
Calls MR_Vector4i_Construct_4().
| Vector4i meshlib.Vector4i.copy | ( | ) |
A copy of the struct, in its own memory.
|
static |
Generated from method MR::Vector4i::diagonal.
Calls MR_Vector4i_diagonal().
|
static |
Returns a pointer to a member variable of class MR::Vector4i named elements.
Calls MR_Vector4i_Get_elements().
| int meshlib.Vector4i.index | ( | int | e | ) |
Generated from method MR::Vector4i::operator[].
Calls MR_Vector4i_index().
| java.lang.foreign.MemorySegment meshlib.Vector4i.index_mut | ( | int | e | ) |
Generated from method MR::Vector4i::operator[].
Calls MR_Vector4i_index_mut(). Some types are raw C types, see the C bindings for the details.
| double meshlib.Vector4i.length | ( | ) |
Generated from method MR::Vector4i::length.
Calls MR_Vector4i_length().
| int meshlib.Vector4i.lengthSq | ( | ) |
Generated from method MR::Vector4i::lengthSq.
Calls MR_Vector4i_lengthSq().
| void meshlib.Vector4i.set | ( | Vector4i | other | ) |
Overwrites the contents with those of another struct.
| void meshlib.Vector4i.setW | ( | int | value | ) |
| void meshlib.Vector4i.setX | ( | int | value | ) |
| void meshlib.Vector4i.setY | ( | int | value | ) |
| void meshlib.Vector4i.setZ | ( | int | value | ) |
| int meshlib.Vector4i.w | ( | ) |
| int meshlib.Vector4i.x | ( | ) |
| int meshlib.Vector4i.y | ( | ) |
| int meshlib.Vector4i.z | ( | ) |
|
static |
The native layout of the struct.
|
static |
|
static |
|
static |
|
static |