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

Public Member Functions

auto index (e:core::ffi::c_int) const -> &f32
auto index_mut (e:core::ffi::c_int) -> &mut f32
auto length_sq () const -> f32
auto length () const -> f32
auto normalized () const -> meshlib::Vector4f
auto proj3d () const -> meshlib::Vector3f
auto is_finite () const -> bool

Static Public Member Functions

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

Public Attributes

f32 x
f32 y
f32 z
f32 w

Detailed Description

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

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

Member Function Documentation

◆ construct_1()

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

Generated from constructor MR::Vector4f::Vector4f.

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

◆ construct_4()

auto meshlib::Vector4f::construct_4 ( x:f32 ,
y:f32 ,
z:f32 ,
w:f32  ) -> meshlib::Vector4f
static

Generated from constructor MR::Vector4f::Vector4f.

Calls MR_Vector4f_Construct_4().

◆ diagonal()

auto meshlib::Vector4f::diagonal ( a:f32 ) -> meshlib::Vector4f
static

Generated from method MR::Vector4f::diagonal.

Calls MR_Vector4f_diagonal().

◆ elements()

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

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

Calls MR_Vector4f_Get_elements().

◆ index()

auto meshlib::Vector4f::index ( e:core::ffi::c_int ) const -> &f32

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

Calls MR_Vector4f_index().

◆ index_mut()

auto meshlib::Vector4f::index_mut ( e:core::ffi::c_int ) -> &mut f32

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

Calls MR_Vector4f_index_mut().

◆ is_finite()

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

Generated from method MR::Vector4f::isFinite.

Calls MR_Vector4f_isFinite().

◆ length()

auto meshlib::Vector4f::length ( ) const -> f32

Generated from method MR::Vector4f::length.

Calls MR_Vector4f_length().

◆ length_sq()

auto meshlib::Vector4f::length_sq ( ) const -> f32

Generated from method MR::Vector4f::lengthSq.

Calls MR_Vector4f_lengthSq().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_Vector4f_DefaultConstruct().

◆ normalized()

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

Generated from method MR::Vector4f::normalized.

Calls MR_Vector4f_normalized().

◆ proj3d()

auto meshlib::Vector4f::proj3d ( ) const -> meshlib::Vector3f

assuming this is a point represented in homogeneous 4D coordinates, returns the point as 3D-vector Generated from method MR::Vector4f::proj3d.

Calls MR_Vector4f_proj3d().

Member Data Documentation

◆ w

f32 meshlib::Vector4f::w

◆ x

f32 meshlib::Vector4f::x

◆ y

f32 meshlib::Vector4f::y

◆ z

f32 meshlib::Vector4f::z

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