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

Public Member Functions

auto assign_from_another (_other:&meshlib::Cylinder3f) -> &mut meshlib::Cylinder3f
auto center_mut () -> &mut meshlib::Vector3f
auto center () const -> &meshlib::Vector3f
auto direction_mut () -> &mut meshlib::Vector3f
auto direction () const -> &meshlib::Vector3f
auto main_axis () const -> &meshlib::Line3f
auto main_axis_mut () -> &mut meshlib::Line3f
void set_main_axis (value:&meshlib::Line3f)
auto radius () const -> &f32
auto radius_mut () -> &mut f32
void set_radius (value:f32)
auto length () const -> &f32
auto length_mut () -> &mut f32
void set_length (value:f32)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::Cylinder3f >
static auto construct_from_another (_other:&meshlib::Cylinder3f) -> meshlib::Owned< meshlib::Cylinder3f >
static auto construct_4 (inCenter:&meshlib::Vector3f, inDirectoin:&meshlib::Vector3f, inRadius:f32, inLength:f32) -> meshlib::Owned< meshlib::Cylinder3f >
static auto construct_3 (inAxis:&meshlib::Line3f, inRadius:f32, inLength:f32) -> meshlib::Owned< meshlib::Cylinder3f >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

A class describing a cylinder as a mathematical object. A cylinder is represented by a centerline, a radius, and a length. TODO: Cylinder3 could be infinite. For example for infinite Cylinder3 we could use negative length or length = -1 Generated from class MR::Cylinder3f.

Generated from class MR::Cylinder3f. Heap-allocated instances are held in Owned<Cylinder3f>.

Member Function Documentation

◆ assign_from_another()

auto meshlib::Cylinder3f::assign_from_another ( _other:&meshlib::Cylinder3f ) -> &mut meshlib::Cylinder3f

Generated from method MR::Cylinder3f::operator=.

Calls MR_Cylinder3f_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ center()

auto meshlib::Cylinder3f::center ( ) const -> &meshlib::Vector3f

Generated from method MR::Cylinder3f::center.

Calls MR_Cylinder3f_center().

◆ center_mut()

auto meshlib::Cylinder3f::center_mut ( ) -> &mut meshlib::Vector3f

Generated from method MR::Cylinder3f::center.

Calls MR_Cylinder3f_center_mut().

◆ construct_3()

auto meshlib::Cylinder3f::construct_3 ( inAxis:&meshlib::Line3f ,
inRadius:f32 ,
inLength:f32  ) -> meshlib::Owned< meshlib::Cylinder3f >
static

Generated from constructor MR::Cylinder3f::Cylinder3f.

Calls MR_Cylinder3f_Construct_3(). The reference to the parameter inAxis might be preserved in the constructed object.

◆ construct_4()

auto meshlib::Cylinder3f::construct_4 ( inCenter:&meshlib::Vector3f ,
inDirectoin:&meshlib::Vector3f ,
inRadius:f32 ,
inLength:f32  ) -> meshlib::Owned< meshlib::Cylinder3f >
static

Generated from constructor MR::Cylinder3f::Cylinder3f.

Calls MR_Cylinder3f_Construct_4(). The reference to the parameter inCenter might be preserved in the constructed object. The reference to the parameter inDirectoin might be preserved in the constructed object.

◆ construct_from_another()

auto meshlib::Cylinder3f::construct_from_another ( _other:&meshlib::Cylinder3f ) -> meshlib::Owned< meshlib::Cylinder3f >
static

Generated from constructor MR::Cylinder3f::Cylinder3f.

Calls MR_Cylinder3f_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ direction()

auto meshlib::Cylinder3f::direction ( ) const -> &meshlib::Vector3f

Generated from method MR::Cylinder3f::direction.

Calls MR_Cylinder3f_direction().

◆ direction_mut()

auto meshlib::Cylinder3f::direction_mut ( ) -> &mut meshlib::Vector3f

Generated from method MR::Cylinder3f::direction.

Calls MR_Cylinder3f_direction_mut().

◆ length()

auto meshlib::Cylinder3f::length ( ) const -> &f32

Returns a pointer to a member variable of class MR::Cylinder3f named length.

Calls MR_Cylinder3f_Get_length(). The reference to this object might be preserved as the return value.

◆ length_mut()

auto meshlib::Cylinder3f::length_mut ( ) -> &mut f32

Returns a mutable pointer to a member variable of class MR::Cylinder3f named length.

Calls MR_Cylinder3f_GetMutable_length(). The reference to this object might be preserved as the return value.

◆ main_axis()

auto meshlib::Cylinder3f::main_axis ( ) const -> &meshlib::Line3f

Returns a pointer to a member variable of class MR::Cylinder3f named mainAxis.

Calls MR_Cylinder3f_Get_mainAxis(). The reference to this object might be preserved as the return value.

◆ main_axis_mut()

auto meshlib::Cylinder3f::main_axis_mut ( ) -> &mut meshlib::Line3f

Returns a mutable pointer to a member variable of class MR::Cylinder3f named mainAxis.

Calls MR_Cylinder3f_GetMutable_mainAxis(). The reference to this object might be preserved as the return value.

◆ new()

auto meshlib::Cylinder3f::new ( ) -> meshlib::Owned< meshlib::Cylinder3f >
static

Constructs an empty (default-constructed) instance.

Calls MR_Cylinder3f_DefaultConstruct().

◆ radius()

auto meshlib::Cylinder3f::radius ( ) const -> &f32

Returns a pointer to a member variable of class MR::Cylinder3f named radius.

Calls MR_Cylinder3f_Get_radius(). The reference to this object might be preserved as the return value.

◆ radius_mut()

auto meshlib::Cylinder3f::radius_mut ( ) -> &mut f32

Returns a mutable pointer to a member variable of class MR::Cylinder3f named radius.

Calls MR_Cylinder3f_GetMutable_radius(). The reference to this object might be preserved as the return value.

◆ set_length()

void meshlib::Cylinder3f::set_length ( value:f32 )

Modifies a member variable of class MR::Cylinder3f named length.

Calls MR_Cylinder3f_Set_length().

◆ set_main_axis()

void meshlib::Cylinder3f::set_main_axis ( value:&meshlib::Line3f )

Modifies a member variable of class MR::Cylinder3f named mainAxis.

Calls MR_Cylinder3f_Set_mainAxis(). The reference to the parameter value might be preserved in this object in element mainAxis.

◆ set_radius()

void meshlib::Cylinder3f::set_radius ( value:f32 )

Modifies a member variable of class MR::Cylinder3f named radius.

Calls MR_Cylinder3f_Set_radius().


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