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

Public Member Functions

 Vector3d (java.lang.foreign.MemorySegment segment, java.lang.Object owner)
Vector3d copy ()
void set (Vector3d other)
double x ()
void setX (double value)
double y ()
void setY (double value)
double z ()
void setZ (double value)
 Vector3d ()
 Vector3d (meshlib.NoInit _1)
 Vector3d (double x, double y, double z)
 Vector3d (meshlib.Vector3f v)
 Vector3d (meshlib.Vector3i v)
double index (int e)
java.lang.foreign.MemorySegment index_mut (int e)
double lengthSq ()
double length ()
meshlib.Vector3d normalized ()
meshlib.Vector3d furthestBasisVector ()
meshlib.std_pair_MR_Vector3d_MR_Vector3d perpendicular ()
meshlib.Vector3d transformed (meshlib.AffineXf3d xf)
void unsignZeroValues ()
boolean isFinite ()
Public Member Functions inherited from meshlib.CppStruct
final java.lang.foreign.MemorySegment rawPointer ()

Static Public Member Functions

static meshlib.Vector3d diagonal (double a)
static meshlib.Vector3d plusX ()
static meshlib.Vector3d plusY ()
static meshlib.Vector3d plusZ ()
static meshlib.Vector3d minusX ()
static meshlib.Vector3d minusY ()
static meshlib.Vector3d minusZ ()
static int elements ()

Static Public Attributes

static final java.lang.foreign.StructLayout LAYOUT = meshlib.Ffi.structLayout(new java.lang.String[]{"x", "y", "z"}, new java.lang.foreign.MemoryLayout[]{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"))

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

Generated from class MR::Vector3d.

Has the same layout as the C++ struct, the fields are accessed in place in native memory.

Constructor & Destructor Documentation

◆ Vector3d() [1/6]

meshlib.Vector3d.Vector3d ( 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.

◆ Vector3d() [2/6]

meshlib.Vector3d.Vector3d ( )

Constructs an empty (default-constructed) instance.

Calls MR_Vector3d_DefaultConstruct().

◆ Vector3d() [3/6]

meshlib.Vector3d.Vector3d ( meshlib.NoInit _1)

Generated from constructor MR::Vector3d::Vector3d. The reference to the parameter _1 might be preserved in the constructed object.

Calls MR_Vector3d_Construct_MR_NoInit().

◆ Vector3d() [4/6]

meshlib.Vector3d.Vector3d ( double x,
double y,
double z )

Generated from constructor MR::Vector3d::Vector3d.

Calls MR_Vector3d_Construct().

◆ Vector3d() [5/6]

meshlib.Vector3d.Vector3d ( meshlib.Vector3f v)

Here T == U doesn't seem to cause any issues in the C++ code, but we're still disabling it because it somehow gets emitted when generating the bindings, and looks out of place there. Generated from constructor MR::Vector3d::Vector3d. The reference to the parameter v might be preserved in the constructed object.

Calls MR_Vector3d_Construct_float().

◆ Vector3d() [6/6]

meshlib.Vector3d.Vector3d ( meshlib.Vector3i v)

Here T == U doesn't seem to cause any issues in the C++ code, but we're still disabling it because it somehow gets emitted when generating the bindings, and looks out of place there. Generated from constructor MR::Vector3d::Vector3d. The reference to the parameter v might be preserved in the constructed object.

Calls MR_Vector3d_Construct_int().

Member Function Documentation

◆ copy()

Vector3d meshlib.Vector3d.copy ( )

A copy of the struct, in its own memory.

◆ diagonal()

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

Generated from method MR::Vector3d::diagonal.

Calls MR_Vector3d_diagonal().

◆ elements()

int meshlib.Vector3d.elements ( )
static

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

Calls MR_Vector3d_Get_elements().

◆ furthestBasisVector()

meshlib.Vector3d meshlib.Vector3d.furthestBasisVector ( )

Generated from method MR::Vector3d::furthestBasisVector.

Calls MR_Vector3d_furthestBasisVector().

◆ index()

double meshlib.Vector3d.index ( int e)

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

Calls MR_Vector3d_index().

◆ index_mut()

java.lang.foreign.MemorySegment meshlib.Vector3d.index_mut ( int e)

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

Calls MR_Vector3d_index_mut(). Some types are raw C types, see the C bindings for the details.

◆ isFinite()

boolean meshlib.Vector3d.isFinite ( )

Generated from method MR::Vector3d::isFinite.

Calls MR_Vector3d_isFinite().

◆ length()

double meshlib.Vector3d.length ( )

Generated from method MR::Vector3d::length.

Calls MR_Vector3d_length().

◆ lengthSq()

double meshlib.Vector3d.lengthSq ( )

Generated from method MR::Vector3d::lengthSq.

Calls MR_Vector3d_lengthSq().

◆ minusX()

meshlib.Vector3d meshlib.Vector3d.minusX ( )
static

Generated from method MR::Vector3d::minusX.

Calls MR_Vector3d_minusX().

◆ minusY()

meshlib.Vector3d meshlib.Vector3d.minusY ( )
static

Generated from method MR::Vector3d::minusY.

Calls MR_Vector3d_minusY().

◆ minusZ()

meshlib.Vector3d meshlib.Vector3d.minusZ ( )
static

Generated from method MR::Vector3d::minusZ.

Calls MR_Vector3d_minusZ().

◆ normalized()

meshlib.Vector3d meshlib.Vector3d.normalized ( )

Generated from method MR::Vector3d::normalized.

Calls MR_Vector3d_normalized().

◆ perpendicular()

meshlib.std_pair_MR_Vector3d_MR_Vector3d meshlib.Vector3d.perpendicular ( )

Generated from method MR::Vector3d::perpendicular.

Calls MR_Vector3d_perpendicular().

◆ plusX()

meshlib.Vector3d meshlib.Vector3d.plusX ( )
static

Generated from method MR::Vector3d::plusX.

Calls MR_Vector3d_plusX().

◆ plusY()

meshlib.Vector3d meshlib.Vector3d.plusY ( )
static

Generated from method MR::Vector3d::plusY.

Calls MR_Vector3d_plusY().

◆ plusZ()

meshlib.Vector3d meshlib.Vector3d.plusZ ( )
static

Generated from method MR::Vector3d::plusZ.

Calls MR_Vector3d_plusZ().

◆ set()

void meshlib.Vector3d.set ( Vector3d other)

Overwrites the contents with those of another struct.

◆ setX()

void meshlib.Vector3d.setX ( double value)

◆ setY()

void meshlib.Vector3d.setY ( double value)

◆ setZ()

void meshlib.Vector3d.setZ ( double value)

◆ transformed()

meshlib.Vector3d meshlib.Vector3d.transformed ( meshlib.AffineXf3d xf)

returns this vector transformed by xf if it is Generated from method MR::Vector3d::transformed.

Calls MR_Vector3d_transformed().

◆ unsignZeroValues()

void meshlib.Vector3d.unsignZeroValues ( )

get rid of signed zero values to be sure that equal vectors have identical binary representation Generated from method MR::Vector3d::unsignZeroValues.

Calls MR_Vector3d_unsignZeroValues().

◆ x()

double meshlib.Vector3d.x ( )

◆ y()

double meshlib.Vector3d.y ( )

◆ z()

double meshlib.Vector3d.z ( )

Member Data Documentation

◆ LAYOUT

final java.lang.foreign.StructLayout meshlib.Vector3d.LAYOUT = meshlib.Ffi.structLayout(new java.lang.String[]{"x", "y", "z"}, new java.lang.foreign.MemoryLayout[]{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_x

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

◆ OFF_y

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

◆ OFF_z

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

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