Public Member Functions | |
| Vector4d (java.lang.foreign.MemorySegment segment, java.lang.Object owner) | |
| Vector4d | copy () |
| void | set (Vector4d other) |
| double | x () |
| void | setX (double value) |
| double | y () |
| void | setY (double value) |
| double | z () |
| void | setZ (double value) |
| double | w () |
| void | setW (double value) |
| Vector4d () | |
| Vector4d (meshlib.NoInit _1) | |
| Vector4d (double x, double y, double z, double w) | |
| double | index (int e) |
| java.lang.foreign.MemorySegment | index_mut (int e) |
| double | lengthSq () |
| double | length () |
| meshlib.Vector4d | normalized () |
| meshlib.Vector3d | proj3d () |
| boolean | isFinite () |
| Public Member Functions inherited from meshlib.CppStruct | |
| final java.lang.foreign.MemorySegment | rawPointer () |
Static Public Member Functions | |
| static meshlib.Vector4d | diagonal (double 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_DOUBLE, java.lang.foreign.ValueLayout.JAVA_DOUBLE, java.lang.foreign.ValueLayout.JAVA_DOUBLE, java.lang.foreign.ValueLayout.JAVA_DOUBLE}) |
| 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::Vector4d.
Has the same layout as the C++ struct, the fields are accessed in place in native memory.
| meshlib.Vector4d.Vector4d | ( | 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.Vector4d.Vector4d | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_Vector4d_DefaultConstruct().
| meshlib.Vector4d.Vector4d | ( | meshlib.NoInit | _1 | ) |
Generated from constructor MR::Vector4d::Vector4d. The reference to the parameter _1 might be preserved in the constructed object.
Calls MR_Vector4d_Construct_1().
| meshlib.Vector4d.Vector4d | ( | double | x, |
| double | y, | ||
| double | z, | ||
| double | w ) |
Generated from constructor MR::Vector4d::Vector4d.
Calls MR_Vector4d_Construct_4().
| Vector4d meshlib.Vector4d.copy | ( | ) |
A copy of the struct, in its own memory.
|
static |
Generated from method MR::Vector4d::diagonal.
Calls MR_Vector4d_diagonal().
|
static |
Returns a pointer to a member variable of class MR::Vector4d named elements.
Calls MR_Vector4d_Get_elements().
| double meshlib.Vector4d.index | ( | int | e | ) |
Generated from method MR::Vector4d::operator[].
Calls MR_Vector4d_index().
| java.lang.foreign.MemorySegment meshlib.Vector4d.index_mut | ( | int | e | ) |
Generated from method MR::Vector4d::operator[].
Calls MR_Vector4d_index_mut(). Some types are raw C types, see the C bindings for the details.
| boolean meshlib.Vector4d.isFinite | ( | ) |
Generated from method MR::Vector4d::isFinite.
Calls MR_Vector4d_isFinite().
| double meshlib.Vector4d.length | ( | ) |
Generated from method MR::Vector4d::length.
Calls MR_Vector4d_length().
| double meshlib.Vector4d.lengthSq | ( | ) |
Generated from method MR::Vector4d::lengthSq.
Calls MR_Vector4d_lengthSq().
| meshlib.Vector4d meshlib.Vector4d.normalized | ( | ) |
Generated from method MR::Vector4d::normalized.
Calls MR_Vector4d_normalized().
| meshlib.Vector3d meshlib.Vector4d.proj3d | ( | ) |
assuming this is a point represented in homogeneous 4D coordinates, returns the point as 3D-vector Generated from method MR::Vector4d::proj3d.
Calls MR_Vector4d_proj3d().
| void meshlib.Vector4d.set | ( | Vector4d | other | ) |
Overwrites the contents with those of another struct.
| void meshlib.Vector4d.setW | ( | double | value | ) |
| void meshlib.Vector4d.setX | ( | double | value | ) |
| void meshlib.Vector4d.setY | ( | double | value | ) |
| void meshlib.Vector4d.setZ | ( | double | value | ) |
| double meshlib.Vector4d.w | ( | ) |
| double meshlib.Vector4d.x | ( | ) |
| double meshlib.Vector4d.y | ( | ) |
| double meshlib.Vector4d.z | ( | ) |
|
static |
The native layout of the struct.
|
static |
|
static |
|
static |
|
static |