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

Public Member Functions

auto assign_from_another (_other:&meshlib::Plane3d) -> &mut meshlib::Plane3d
auto distance (x:&meshlib::Vector3d) const -> f64
auto op_neg () const -> meshlib::Owned< meshlib::Plane3d >
auto op_pos () const -> &meshlib::Plane3d
auto normalized () const -> meshlib::Owned< meshlib::Plane3d >
auto project (p:&meshlib::Vector3d) const -> meshlib::Vector3d
auto n () const -> &meshlib::Vector3d
auto n_mut () -> &mut meshlib::Vector3d
void set_n (value:meshlib::Vector3d)
auto d () const -> &f64
auto d_mut () -> &mut f64
void set_d (value:f64)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::Plane3d >
static auto construct_from_another (_other:&meshlib::Plane3d) -> meshlib::Owned< meshlib::Plane3d >
static auto construct (n:&meshlib::Vector3d, d:f64) -> meshlib::Owned< meshlib::Plane3d >
static auto construct_float (p:&meshlib::Plane3f) -> meshlib::Owned< meshlib::Plane3d >
static auto from_dir_and_pt (n:&meshlib::Vector3d, p:&meshlib::Vector3d) -> meshlib::Owned< meshlib::Plane3d >
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

3-dimensional plane: dot(n,x) - d = 0 Generated from class MR::Plane3d.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct()

auto meshlib::Plane3d::construct ( n:&meshlib::Vector3d ,
d:f64  ) -> meshlib::Owned< meshlib::Plane3d >
static

Generated from constructor MR::Plane3d::Plane3d.

Calls MR_Plane3d_Construct(). The reference to the parameter n might be preserved in the constructed object.

◆ construct_float()

auto meshlib::Plane3d::construct_float ( p:&meshlib::Plane3f ) -> meshlib::Owned< meshlib::Plane3d >
static

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 results in duplicate functions in C#. Generated from constructor MR::Plane3d::Plane3d.

Calls MR_Plane3d_Construct_float(). The reference to the parameter p might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::Plane3d::Plane3d.

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

◆ d()

auto meshlib::Plane3d::d ( ) const -> &f64

Returns a pointer to a member variable of class MR::Plane3d named d.

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

◆ d_mut()

auto meshlib::Plane3d::d_mut ( ) -> &mut f64

Returns a mutable pointer to a member variable of class MR::Plane3d named d.

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

◆ distance()

auto meshlib::Plane3d::distance ( x:&meshlib::Vector3d ) const -> f64

returns distance from given point to this plane (if n is a unit vector) Generated from method MR::Plane3d::distance.

Calls MR_Plane3d_distance().

◆ from_dir_and_pt()

auto meshlib::Plane3d::from_dir_and_pt ( n:&meshlib::Vector3d ,
p:&meshlib::Vector3d  ) -> meshlib::Owned< meshlib::Plane3d >
static

Generated from method MR::Plane3d::fromDirAndPt.

Calls MR_Plane3d_fromDirAndPt().

◆ n()

auto meshlib::Plane3d::n ( ) const -> &meshlib::Vector3d

Returns a pointer to a member variable of class MR::Plane3d named n.

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

◆ n_mut()

auto meshlib::Plane3d::n_mut ( ) -> &mut meshlib::Vector3d

Returns a mutable pointer to a member variable of class MR::Plane3d named n.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_Plane3d_DefaultConstruct().

◆ normalized()

auto meshlib::Plane3d::normalized ( ) const -> meshlib::Owned< meshlib::Plane3d >

returns same plane represented with unit n-vector Generated from method MR::Plane3d::normalized.

Calls MR_Plane3d_normalized().

◆ op_neg()

auto meshlib::Plane3d::op_neg ( ) const -> meshlib::Owned< meshlib::Plane3d >

returns same plane represented with flipped direction of n-vector Generated from method MR::Plane3d::operator-.

Calls MR_neg_MR_Plane3d().

◆ op_pos()

auto meshlib::Plane3d::op_pos ( ) const -> &meshlib::Plane3d

returns same representation Generated from method MR::Plane3d::operator+.

Calls MR_pos_MR_Plane3d().

◆ project()

auto meshlib::Plane3d::project ( p:&meshlib::Vector3d ) const -> meshlib::Vector3d

finds the closest point on plane Generated from method MR::Plane3d::project.

Calls MR_Plane3d_project().

◆ set_d()

void meshlib::Plane3d::set_d ( value:f64 )

Modifies a member variable of class MR::Plane3d named d.

Calls MR_Plane3d_Set_d().

◆ set_n()

void meshlib::Plane3d::set_n ( value:meshlib::Vector3d )

Modifies a member variable of class MR::Plane3d named n.

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


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