Public Member Functions | |
| Vector4f (java.lang.foreign.MemorySegment segment, java.lang.Object owner) | |
| Vector4f | copy () |
| void | set (Vector4f other) |
| float | x () |
| void | setX (float value) |
| float | y () |
| void | setY (float value) |
| float | z () |
| void | setZ (float value) |
| float | w () |
| void | setW (float value) |
| Vector4f () | |
| Vector4f (meshlib.NoInit _1) | |
| Vector4f (float x, float y, float z, float w) | |
| float | index (int e) |
| java.lang.foreign.MemorySegment | index_mut (int e) |
| float | lengthSq () |
| float | length () |
| meshlib.Vector4f | normalized () |
| meshlib.Vector3f | proj3d () |
| boolean | isFinite () |
| Public Member Functions inherited from meshlib.CppStruct | |
| final java.lang.foreign.MemorySegment | rawPointer () |
Static Public Member Functions | |
| static meshlib.Vector4f | diagonal (float 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_FLOAT, java.lang.foreign.ValueLayout.JAVA_FLOAT, 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")) |
| 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::Vector4f.
Has the same layout as the C++ struct, the fields are accessed in place in native memory.
| meshlib.Vector4f.Vector4f | ( | 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.Vector4f.Vector4f | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_Vector4f_DefaultConstruct().
| meshlib.Vector4f.Vector4f | ( | meshlib.NoInit | _1 | ) |
Generated from constructor MR::Vector4f::Vector4f. The reference to the parameter _1 might be preserved in the constructed object.
Calls MR_Vector4f_Construct_1().
| meshlib.Vector4f.Vector4f | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | w ) |
Generated from constructor MR::Vector4f::Vector4f.
Calls MR_Vector4f_Construct_4().
| Vector4f meshlib.Vector4f.copy | ( | ) |
A copy of the struct, in its own memory.
|
static |
Generated from method MR::Vector4f::diagonal.
Calls MR_Vector4f_diagonal().
|
static |
Returns a pointer to a member variable of class MR::Vector4f named elements.
Calls MR_Vector4f_Get_elements().
| float meshlib.Vector4f.index | ( | int | e | ) |
Generated from method MR::Vector4f::operator[].
Calls MR_Vector4f_index().
| java.lang.foreign.MemorySegment meshlib.Vector4f.index_mut | ( | int | e | ) |
Generated from method MR::Vector4f::operator[].
Calls MR_Vector4f_index_mut(). Some types are raw C types, see the C bindings for the details.
| boolean meshlib.Vector4f.isFinite | ( | ) |
Generated from method MR::Vector4f::isFinite.
Calls MR_Vector4f_isFinite().
| float meshlib.Vector4f.length | ( | ) |
Generated from method MR::Vector4f::length.
Calls MR_Vector4f_length().
| float meshlib.Vector4f.lengthSq | ( | ) |
Generated from method MR::Vector4f::lengthSq.
Calls MR_Vector4f_lengthSq().
| meshlib.Vector4f meshlib.Vector4f.normalized | ( | ) |
Generated from method MR::Vector4f::normalized.
Calls MR_Vector4f_normalized().
| meshlib.Vector3f meshlib.Vector4f.proj3d | ( | ) |
assuming this is a point represented in homogeneous 4D coordinates, returns the point as 3D-vector Generated from method MR::Vector4f::proj3d.
Calls MR_Vector4f_proj3d().
| void meshlib.Vector4f.set | ( | Vector4f | other | ) |
Overwrites the contents with those of another struct.
| void meshlib.Vector4f.setW | ( | float | value | ) |
| void meshlib.Vector4f.setX | ( | float | value | ) |
| void meshlib.Vector4f.setY | ( | float | value | ) |
| void meshlib.Vector4f.setZ | ( | float | value | ) |
| float meshlib.Vector4f.w | ( | ) |
| float meshlib.Vector4f.x | ( | ) |
| float meshlib.Vector4f.y | ( | ) |
| float meshlib.Vector4f.z | ( | ) |
|
static |
The native layout of the struct.
|
static |
|
static |
|
static |
|
static |