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

Public Member Functions

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

Static Public Member Functions

static meshlib.Vector3f diagonal (float a)
static meshlib.Vector3f plusX ()
static meshlib.Vector3f plusY ()
static meshlib.Vector3f plusZ ()
static meshlib.Vector3f minusX ()
static meshlib.Vector3f minusY ()
static meshlib.Vector3f 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_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"))

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::Vector3f.

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

Constructor & Destructor Documentation

◆ Vector3f() [1/6]

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

◆ Vector3f() [2/6]

meshlib.Vector3f.Vector3f ( )

Constructs an empty (default-constructed) instance.

Calls MR_Vector3f_DefaultConstruct().

◆ Vector3f() [3/6]

meshlib.Vector3f.Vector3f ( meshlib.NoInit _1)

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

Calls MR_Vector3f_Construct_MR_NoInit().

◆ Vector3f() [4/6]

meshlib.Vector3f.Vector3f ( float x,
float y,
float z )

Generated from constructor MR::Vector3f::Vector3f.

Calls MR_Vector3f_Construct().

◆ Vector3f() [5/6]

meshlib.Vector3f.Vector3f ( meshlib.Vector3d 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::Vector3f::Vector3f. The reference to the parameter v might be preserved in the constructed object.

Calls MR_Vector3f_Construct_double().

◆ Vector3f() [6/6]

meshlib.Vector3f.Vector3f ( 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::Vector3f::Vector3f. The reference to the parameter v might be preserved in the constructed object.

Calls MR_Vector3f_Construct_int().

Member Function Documentation

◆ copy()

Vector3f meshlib.Vector3f.copy ( )

A copy of the struct, in its own memory.

◆ diagonal()

meshlib.Vector3f meshlib.Vector3f.diagonal ( float a)
static

Generated from method MR::Vector3f::diagonal.

Calls MR_Vector3f_diagonal().

◆ elements()

int meshlib.Vector3f.elements ( )
static

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

Calls MR_Vector3f_Get_elements().

◆ furthestBasisVector()

meshlib.Vector3f meshlib.Vector3f.furthestBasisVector ( )

Generated from method MR::Vector3f::furthestBasisVector.

Calls MR_Vector3f_furthestBasisVector().

◆ index()

float meshlib.Vector3f.index ( int e)

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

Calls MR_Vector3f_index().

◆ index_mut()

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

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

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

◆ isFinite()

boolean meshlib.Vector3f.isFinite ( )

Generated from method MR::Vector3f::isFinite.

Calls MR_Vector3f_isFinite().

◆ length()

float meshlib.Vector3f.length ( )

Generated from method MR::Vector3f::length.

Calls MR_Vector3f_length().

◆ lengthSq()

float meshlib.Vector3f.lengthSq ( )

Generated from method MR::Vector3f::lengthSq.

Calls MR_Vector3f_lengthSq().

◆ minusX()

meshlib.Vector3f meshlib.Vector3f.minusX ( )
static

Generated from method MR::Vector3f::minusX.

Calls MR_Vector3f_minusX().

◆ minusY()

meshlib.Vector3f meshlib.Vector3f.minusY ( )
static

Generated from method MR::Vector3f::minusY.

Calls MR_Vector3f_minusY().

◆ minusZ()

meshlib.Vector3f meshlib.Vector3f.minusZ ( )
static

Generated from method MR::Vector3f::minusZ.

Calls MR_Vector3f_minusZ().

◆ normalized()

meshlib.Vector3f meshlib.Vector3f.normalized ( )

Generated from method MR::Vector3f::normalized.

Calls MR_Vector3f_normalized().

◆ perpendicular()

meshlib.std_pair_MR_Vector3f_MR_Vector3f meshlib.Vector3f.perpendicular ( )

Generated from method MR::Vector3f::perpendicular.

Calls MR_Vector3f_perpendicular().

◆ plusX()

meshlib.Vector3f meshlib.Vector3f.plusX ( )
static

Generated from method MR::Vector3f::plusX.

Calls MR_Vector3f_plusX().

◆ plusY()

meshlib.Vector3f meshlib.Vector3f.plusY ( )
static

Generated from method MR::Vector3f::plusY.

Calls MR_Vector3f_plusY().

◆ plusZ()

meshlib.Vector3f meshlib.Vector3f.plusZ ( )
static

Generated from method MR::Vector3f::plusZ.

Calls MR_Vector3f_plusZ().

◆ set()

void meshlib.Vector3f.set ( Vector3f other)

Overwrites the contents with those of another struct.

◆ setX()

void meshlib.Vector3f.setX ( float value)

◆ setY()

void meshlib.Vector3f.setY ( float value)

◆ setZ()

void meshlib.Vector3f.setZ ( float value)

◆ transformed()

meshlib.Vector3f meshlib.Vector3f.transformed ( meshlib.AffineXf3f xf)

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

Calls MR_Vector3f_transformed().

◆ unsignZeroValues()

void meshlib.Vector3f.unsignZeroValues ( )

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

Calls MR_Vector3f_unsignZeroValues().

◆ x()

float meshlib.Vector3f.x ( )

◆ y()

float meshlib.Vector3f.y ( )

◆ z()

float meshlib.Vector3f.z ( )

Member Data Documentation

◆ LAYOUT

final java.lang.foreign.StructLayout meshlib.Vector3f.LAYOUT = meshlib.Ffi.structLayout(new java.lang.String[]{"x", "y", "z"}, new java.lang.foreign.MemoryLayout[]{java.lang.foreign.ValueLayout.JAVA_FLOAT, java.lang.foreign.ValueLayout.JAVA_FLOAT, java.lang.foreign.ValueLayout.JAVA_FLOAT})
static

The native layout of the struct.

◆ OFF_x

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

◆ OFF_y

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

◆ OFF_z

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

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