MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::QuadraticForm3f Struct Reference
Inheritance diagram for meshlib::QuadraticForm3f:

Public Member Functions

auto assign_from_another (_other:&meshlib::QuadraticForm3f) -> &mut meshlib::QuadraticForm3f
auto eval (x:&meshlib::Vector3f) const -> f32
void add_dist_to_origin (weight:f32)
void add_dist_to_plane_1 (planeUnitNormal:&meshlib::Vector3f)
void add_dist_to_plane_2 (planeUnitNormal:&meshlib::Vector3f, weight:f32)
void add_dist_to_line_1 (lineUnitDir:&meshlib::Vector3f)
void add_dist_to_line_2 (lineUnitDir:&meshlib::Vector3f, weight:f32)
auto a () const -> &meshlib::SymMatrix3f
auto a_mut () -> &mut meshlib::SymMatrix3f
void set_a (value:&meshlib::SymMatrix3f)
auto c () const -> &f32
auto c_mut () -> &mut f32
void set_c (value:f32)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::QuadraticForm3f >
static auto construct_from (A:&meshlib::SymMatrix3f, c:f32) -> meshlib::Owned< meshlib::QuadraticForm3f >
static auto construct_from_another (_other:&meshlib::QuadraticForm3f) -> meshlib::Owned< meshlib::QuadraticForm3f >
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

quadratic form: f = x^T A x + c Generated from class MR::QuadraticForm3f.

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

Member Function Documentation

◆ a()

auto meshlib::QuadraticForm3f::a ( ) const -> &meshlib::SymMatrix3f

Returns a pointer to a member variable of class MR::QuadraticForm3f named A.

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

◆ a_mut()

auto meshlib::QuadraticForm3f::a_mut ( ) -> &mut meshlib::SymMatrix3f

Returns a mutable pointer to a member variable of class MR::QuadraticForm3f named A.

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

◆ add_dist_to_line_1()

void meshlib::QuadraticForm3f::add_dist_to_line_1 ( lineUnitDir:&meshlib::Vector3f )

adds to this squared distance to line passing via origin with given unit direction Generated from method MR::QuadraticForm3f::addDistToLine.

Calls MR_QuadraticForm3f_addDistToLine_1().

◆ add_dist_to_line_2()

void meshlib::QuadraticForm3f::add_dist_to_line_2 ( lineUnitDir:&meshlib::Vector3f ,
weight:f32  )

Generated from method MR::QuadraticForm3f::addDistToLine.

Calls MR_QuadraticForm3f_addDistToLine_2().

◆ add_dist_to_origin()

void meshlib::QuadraticForm3f::add_dist_to_origin ( weight:f32 )

adds to this squared distance to the origin point Generated from method MR::QuadraticForm3f::addDistToOrigin.

Calls MR_QuadraticForm3f_addDistToOrigin().

◆ add_dist_to_plane_1()

void meshlib::QuadraticForm3f::add_dist_to_plane_1 ( planeUnitNormal:&meshlib::Vector3f )

adds to this squared distance to plane passing via origin with given unit normal Generated from method MR::QuadraticForm3f::addDistToPlane.

Calls MR_QuadraticForm3f_addDistToPlane_1().

◆ add_dist_to_plane_2()

void meshlib::QuadraticForm3f::add_dist_to_plane_2 ( planeUnitNormal:&meshlib::Vector3f ,
weight:f32  )

Generated from method MR::QuadraticForm3f::addDistToPlane.

Calls MR_QuadraticForm3f_addDistToPlane_2().

◆ assign_from_another()

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

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

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

◆ c()

auto meshlib::QuadraticForm3f::c ( ) const -> &f32

Returns a pointer to a member variable of class MR::QuadraticForm3f named c.

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

◆ c_mut()

auto meshlib::QuadraticForm3f::c_mut ( ) -> &mut f32

Returns a mutable pointer to a member variable of class MR::QuadraticForm3f named c.

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

◆ construct_from()

auto meshlib::QuadraticForm3f::construct_from ( A:&meshlib::SymMatrix3f ,
c:f32  ) -> meshlib::Owned< meshlib::QuadraticForm3f >
static

Constructs MR::QuadraticForm3f elementwise.

Calls MR_QuadraticForm3f_ConstructFrom(). The reference to the parameter A might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::QuadraticForm3f::QuadraticForm3f.

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

◆ eval()

auto meshlib::QuadraticForm3f::eval ( x:&meshlib::Vector3f ) const -> f32

evaluates the function at given x Generated from method MR::QuadraticForm3f::eval.

Calls MR_QuadraticForm3f_eval().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_QuadraticForm3f_DefaultConstruct().

◆ set_a()

void meshlib::QuadraticForm3f::set_a ( value:&meshlib::SymMatrix3f )

Modifies a member variable of class MR::QuadraticForm3f named A.

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

◆ set_c()

void meshlib::QuadraticForm3f::set_c ( value:f32 )

Modifies a member variable of class MR::QuadraticForm3f named c.

Calls MR_QuadraticForm3f_Set_c().


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