MeshLib Java Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib.Vector4d:

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ Vector4d() [1/4]

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.

◆ Vector4d() [2/4]

meshlib.Vector4d.Vector4d ( )

Constructs an empty (default-constructed) instance.

Calls MR_Vector4d_DefaultConstruct().

◆ Vector4d() [3/4]

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().

◆ Vector4d() [4/4]

meshlib.Vector4d.Vector4d ( double x,
double y,
double z,
double w )

Generated from constructor MR::Vector4d::Vector4d.

Calls MR_Vector4d_Construct_4().

Member Function Documentation

◆ copy()

Vector4d meshlib.Vector4d.copy ( )

A copy of the struct, in its own memory.

◆ diagonal()

meshlib.Vector4d meshlib.Vector4d.diagonal ( double a)
static

Generated from method MR::Vector4d::diagonal.

Calls MR_Vector4d_diagonal().

◆ elements()

int meshlib.Vector4d.elements ( )
static

Returns a pointer to a member variable of class MR::Vector4d named elements.

Calls MR_Vector4d_Get_elements().

◆ index()

double meshlib.Vector4d.index ( int e)

Generated from method MR::Vector4d::operator[].

Calls MR_Vector4d_index().

◆ index_mut()

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.

◆ isFinite()

boolean meshlib.Vector4d.isFinite ( )

Generated from method MR::Vector4d::isFinite.

Calls MR_Vector4d_isFinite().

◆ length()

double meshlib.Vector4d.length ( )

Generated from method MR::Vector4d::length.

Calls MR_Vector4d_length().

◆ lengthSq()

double meshlib.Vector4d.lengthSq ( )

Generated from method MR::Vector4d::lengthSq.

Calls MR_Vector4d_lengthSq().

◆ normalized()

meshlib.Vector4d meshlib.Vector4d.normalized ( )

Generated from method MR::Vector4d::normalized.

Calls MR_Vector4d_normalized().

◆ proj3d()

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().

◆ set()

void meshlib.Vector4d.set ( Vector4d other)

Overwrites the contents with those of another struct.

◆ setW()

void meshlib.Vector4d.setW ( double value)

◆ setX()

void meshlib.Vector4d.setX ( double value)

◆ setY()

void meshlib.Vector4d.setY ( double value)

◆ setZ()

void meshlib.Vector4d.setZ ( double value)

◆ w()

double meshlib.Vector4d.w ( )

◆ x()

double meshlib.Vector4d.x ( )

◆ y()

double meshlib.Vector4d.y ( )

◆ z()

double meshlib.Vector4d.z ( )

Member Data Documentation

◆ LAYOUT

final java.lang.foreign.StructLayout meshlib.Vector4d.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

The native layout of the struct.

◆ OFF_w

final long meshlib.Vector4d.OFF_w = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("w"))
static

◆ OFF_x

final long meshlib.Vector4d.OFF_x = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("x"))
static

◆ OFF_y

final long meshlib.Vector4d.OFF_y = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("y"))
static

◆ OFF_z

final long meshlib.Vector4d.OFF_z = LAYOUT.byteOffset(java.lang.foreign.MemoryLayout.PathElement.groupElement("z"))
static

The documentation for this class was generated from the following file: