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

Public Member Functions

auto index (e:core::ffi::c_int) const -> &f64
auto index_mut (e:core::ffi::c_int) -> &mut f64
auto length_sq () const -> f64
auto length () const -> f64
auto normalized () const -> meshlib::Vector4d
auto proj3d () const -> meshlib::Vector3d
auto is_finite () const -> bool

Static Public Member Functions

static auto new () -> meshlib::Vector4d
static auto construct_1 (_1:&meshlib::NoInit) -> meshlib::Vector4d
static auto construct_4 (x:f64, y:f64, z:f64, w:f64) -> meshlib::Vector4d
static auto diagonal (a:f64) -> meshlib::Vector4d
static auto elements () -> *const core::ffi::c_int

Public Attributes

f64 x
f64 y
f64 z
f64 w

Detailed Description

four-dimensional vector Generated from class MR::Vector4d.

Generated from struct MR::Vector4d. The fields are accessed directly.

Member Function Documentation

◆ construct_1()

auto meshlib::Vector4d::construct_1 ( _1:&meshlib::NoInit ) -> meshlib::Vector4d
static

Generated from constructor MR::Vector4d::Vector4d.

Calls MR_Vector4d_Construct_1(). The reference to the parameter _1 might be preserved in the constructed object.

◆ construct_4()

auto meshlib::Vector4d::construct_4 ( x:f64 ,
y:f64 ,
z:f64 ,
w:f64  ) -> meshlib::Vector4d
static

Generated from constructor MR::Vector4d::Vector4d.

Calls MR_Vector4d_Construct_4().

◆ diagonal()

auto meshlib::Vector4d::diagonal ( a:f64 ) -> meshlib::Vector4d
static

Generated from method MR::Vector4d::diagonal.

Calls MR_Vector4d_diagonal().

◆ elements()

auto meshlib::Vector4d::elements ( ) -> *const core::ffi::c_int
static

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

Calls MR_Vector4d_Get_elements().

◆ index()

auto meshlib::Vector4d::index ( e:core::ffi::c_int ) const -> &f64

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

Calls MR_Vector4d_index().

◆ index_mut()

auto meshlib::Vector4d::index_mut ( e:core::ffi::c_int ) -> &mut f64

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

Calls MR_Vector4d_index_mut().

◆ is_finite()

auto meshlib::Vector4d::is_finite ( ) const -> bool

Generated from method MR::Vector4d::isFinite.

Calls MR_Vector4d_isFinite().

◆ length()

auto meshlib::Vector4d::length ( ) const -> f64

Generated from method MR::Vector4d::length.

Calls MR_Vector4d_length().

◆ length_sq()

auto meshlib::Vector4d::length_sq ( ) const -> f64

Generated from method MR::Vector4d::lengthSq.

Calls MR_Vector4d_lengthSq().

◆ new()

auto meshlib::Vector4d::new ( ) -> meshlib::Vector4d
static

Constructs an empty (default-constructed) instance.

Calls MR_Vector4d_DefaultConstruct().

◆ normalized()

auto meshlib::Vector4d::normalized ( ) const -> meshlib::Vector4d

Generated from method MR::Vector4d::normalized.

Calls MR_Vector4d_normalized().

◆ proj3d()

auto meshlib::Vector4d::proj3d ( ) const -> meshlib::Vector3d

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

Member Data Documentation

◆ w

f64 meshlib::Vector4d::w

◆ x

f64 meshlib::Vector4d::x

◆ y

f64 meshlib::Vector4d::y

◆ z

f64 meshlib::Vector4d::z

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