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

Public Member Functions

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

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::Plane3f >
static auto construct_from_another (_other:&meshlib::Plane3f) -> meshlib::Owned< meshlib::Plane3f >
static auto construct (n:&meshlib::Vector3f, d:f32) -> meshlib::Owned< meshlib::Plane3f >
static auto construct_double (p:&meshlib::Plane3d) -> meshlib::Owned< meshlib::Plane3f >
static auto from_dir_and_pt (n:&meshlib::Vector3f, p:&meshlib::Vector3f) -> meshlib::Owned< meshlib::Plane3f >
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::Plane3f.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct()

auto meshlib::Plane3f::construct ( n:&meshlib::Vector3f ,
d:f32  ) -> meshlib::Owned< meshlib::Plane3f >
static

Generated from constructor MR::Plane3f::Plane3f.

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

◆ construct_double()

auto meshlib::Plane3f::construct_double ( p:&meshlib::Plane3d ) -> meshlib::Owned< meshlib::Plane3f >
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::Plane3f::Plane3f.

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

◆ construct_from_another()

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

Generated from constructor MR::Plane3f::Plane3f.

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

◆ d()

auto meshlib::Plane3f::d ( ) const -> &f32

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

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

◆ d_mut()

auto meshlib::Plane3f::d_mut ( ) -> &mut f32

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

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

◆ distance()

auto meshlib::Plane3f::distance ( x:&meshlib::Vector3f ) const -> f32

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

Calls MR_Plane3f_distance().

◆ from_dir_and_pt()

auto meshlib::Plane3f::from_dir_and_pt ( n:&meshlib::Vector3f ,
p:&meshlib::Vector3f  ) -> meshlib::Owned< meshlib::Plane3f >
static

Generated from method MR::Plane3f::fromDirAndPt.

Calls MR_Plane3f_fromDirAndPt().

◆ n()

auto meshlib::Plane3f::n ( ) const -> &meshlib::Vector3f

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

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

◆ n_mut()

auto meshlib::Plane3f::n_mut ( ) -> &mut meshlib::Vector3f

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

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_Plane3f_DefaultConstruct().

◆ normalized()

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

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

Calls MR_Plane3f_normalized().

◆ op_neg()

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

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

Calls MR_neg_MR_Plane3f().

◆ op_pos()

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

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

Calls MR_pos_MR_Plane3f().

◆ project()

auto meshlib::Plane3f::project ( p:&meshlib::Vector3f ) const -> meshlib::Vector3f

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

Calls MR_Plane3f_project().

◆ set_d()

void meshlib::Plane3f::set_d ( value:f32 )

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

Calls MR_Plane3f_Set_d().

◆ set_n()

void meshlib::Plane3f::set_n ( value:meshlib::Vector3f )

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

Calls MR_Plane3f_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: