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

Public Member Functions

auto assign_from_another (_other:&meshlib::Cylinder3d) -> &mut meshlib::Cylinder3d
auto center_mut () -> &mut meshlib::Vector3d
auto center () const -> &meshlib::Vector3d
auto direction_mut () -> &mut meshlib::Vector3d
auto direction () const -> &meshlib::Vector3d
auto main_axis () const -> &meshlib::Line3d
auto main_axis_mut () -> &mut meshlib::Line3d
void set_main_axis (value:&meshlib::Line3d)
auto radius () const -> &f64
auto radius_mut () -> &mut f64
void set_radius (value:f64)
auto length () const -> &f64
auto length_mut () -> &mut f64
void set_length (value:f64)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::Cylinder3d >
static auto construct_from_another (_other:&meshlib::Cylinder3d) -> meshlib::Owned< meshlib::Cylinder3d >
static auto construct_4 (inCenter:&meshlib::Vector3d, inDirectoin:&meshlib::Vector3d, inRadius:f64, inLength:f64) -> meshlib::Owned< meshlib::Cylinder3d >
static auto construct_3 (inAxis:&meshlib::Line3d, inRadius:f64, inLength:f64) -> meshlib::Owned< meshlib::Cylinder3d >
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::Cylinder3d.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ center()

auto meshlib::Cylinder3d::center ( ) const -> &meshlib::Vector3d

Generated from method MR::Cylinder3d::center.

Calls MR_Cylinder3d_center().

◆ center_mut()

auto meshlib::Cylinder3d::center_mut ( ) -> &mut meshlib::Vector3d

Generated from method MR::Cylinder3d::center.

Calls MR_Cylinder3d_center_mut().

◆ construct_3()

auto meshlib::Cylinder3d::construct_3 ( inAxis:&meshlib::Line3d ,
inRadius:f64 ,
inLength:f64  ) -> meshlib::Owned< meshlib::Cylinder3d >
static

Generated from constructor MR::Cylinder3d::Cylinder3d.

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

◆ construct_4()

auto meshlib::Cylinder3d::construct_4 ( inCenter:&meshlib::Vector3d ,
inDirectoin:&meshlib::Vector3d ,
inRadius:f64 ,
inLength:f64  ) -> meshlib::Owned< meshlib::Cylinder3d >
static

Generated from constructor MR::Cylinder3d::Cylinder3d.

Calls MR_Cylinder3d_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::Cylinder3d::construct_from_another ( _other:&meshlib::Cylinder3d ) -> meshlib::Owned< meshlib::Cylinder3d >
static

Generated from constructor MR::Cylinder3d::Cylinder3d.

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

◆ direction()

auto meshlib::Cylinder3d::direction ( ) const -> &meshlib::Vector3d

Generated from method MR::Cylinder3d::direction.

Calls MR_Cylinder3d_direction().

◆ direction_mut()

auto meshlib::Cylinder3d::direction_mut ( ) -> &mut meshlib::Vector3d

Generated from method MR::Cylinder3d::direction.

Calls MR_Cylinder3d_direction_mut().

◆ length()

auto meshlib::Cylinder3d::length ( ) const -> &f64

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

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

◆ length_mut()

auto meshlib::Cylinder3d::length_mut ( ) -> &mut f64

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

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

◆ main_axis()

auto meshlib::Cylinder3d::main_axis ( ) const -> &meshlib::Line3d

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

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

◆ main_axis_mut()

auto meshlib::Cylinder3d::main_axis_mut ( ) -> &mut meshlib::Line3d

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

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_Cylinder3d_DefaultConstruct().

◆ radius()

auto meshlib::Cylinder3d::radius ( ) const -> &f64

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

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

◆ radius_mut()

auto meshlib::Cylinder3d::radius_mut ( ) -> &mut f64

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

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

◆ set_length()

void meshlib::Cylinder3d::set_length ( value:f64 )

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

Calls MR_Cylinder3d_Set_length().

◆ set_main_axis()

void meshlib::Cylinder3d::set_main_axis ( value:&meshlib::Line3d )

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

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

◆ set_radius()

void meshlib::Cylinder3d::set_radius ( value:f64 )

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

Calls MR_Cylinder3d_Set_radius().


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