Public Member Functions | |
| auto | assign_from_another (_other:&meshlib::QuadraticForm2f) -> &mut meshlib::QuadraticForm2f |
| auto | eval (x:&meshlib::Vector2f) const -> f32 |
| void | add_dist_to_origin (weight:f32) |
| void | add_dist_to_plane_1 (planeUnitNormal:&meshlib::Vector2f) |
| void | add_dist_to_plane_2 (planeUnitNormal:&meshlib::Vector2f, weight:f32) |
| void | add_dist_to_line_1 (lineUnitDir:&meshlib::Vector2f) |
| void | add_dist_to_line_2 (lineUnitDir:&meshlib::Vector2f, weight:f32) |
| auto | a () const -> &meshlib::SymMatrix2f |
| auto | a_mut () -> &mut meshlib::SymMatrix2f |
| void | set_a (value:&meshlib::SymMatrix2f) |
| auto | c () const -> &f32 |
| auto | c_mut () -> &mut f32 |
| void | set_c (value:f32) |
Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::QuadraticForm2f > |
| static auto | construct_from (A:&meshlib::SymMatrix2f, c:f32) -> meshlib::Owned< meshlib::QuadraticForm2f > |
| static auto | construct_from_another (_other:&meshlib::QuadraticForm2f) -> meshlib::Owned< meshlib::QuadraticForm2f > |
| 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 |
quadratic form: f = x^T A x + c Generated from class MR::QuadraticForm2f.
Generated from class MR::QuadraticForm2f. Heap-allocated instances are held in Owned<QuadraticForm2f>.
| auto meshlib::QuadraticForm2f::a | ( | ) | const -> &meshlib::SymMatrix2f |
Returns a pointer to a member variable of class MR::QuadraticForm2f named A.
Calls MR_QuadraticForm2f_Get_A(). The reference to this object might be preserved as the return value.
| auto meshlib::QuadraticForm2f::a_mut | ( | ) | -> &mut meshlib::SymMatrix2f |
Returns a mutable pointer to a member variable of class MR::QuadraticForm2f named A.
Calls MR_QuadraticForm2f_GetMutable_A(). The reference to this object might be preserved as the return value.
| void meshlib::QuadraticForm2f::add_dist_to_line_1 | ( | lineUnitDir:&meshlib::Vector2f | ) |
adds to this squared distance to line passing via origin with given unit direction Generated from method MR::QuadraticForm2f::addDistToLine.
Calls MR_QuadraticForm2f_addDistToLine_1().
| void meshlib::QuadraticForm2f::add_dist_to_line_2 | ( | lineUnitDir:&meshlib::Vector2f | , |
| weight:f32 | ) |
Generated from method MR::QuadraticForm2f::addDistToLine.
Calls MR_QuadraticForm2f_addDistToLine_2().
| void meshlib::QuadraticForm2f::add_dist_to_origin | ( | weight:f32 | ) |
adds to this squared distance to the origin point Generated from method MR::QuadraticForm2f::addDistToOrigin.
Calls MR_QuadraticForm2f_addDistToOrigin().
| void meshlib::QuadraticForm2f::add_dist_to_plane_1 | ( | planeUnitNormal:&meshlib::Vector2f | ) |
adds to this squared distance to plane passing via origin with given unit normal Generated from method MR::QuadraticForm2f::addDistToPlane.
Calls MR_QuadraticForm2f_addDistToPlane_1().
| void meshlib::QuadraticForm2f::add_dist_to_plane_2 | ( | planeUnitNormal:&meshlib::Vector2f | , |
| weight:f32 | ) |
Generated from method MR::QuadraticForm2f::addDistToPlane.
Calls MR_QuadraticForm2f_addDistToPlane_2().
| auto meshlib::QuadraticForm2f::assign_from_another | ( | _other:&meshlib::QuadraticForm2f | ) | -> &mut meshlib::QuadraticForm2f |
Generated from method MR::QuadraticForm2f::operator=.
Calls MR_QuadraticForm2f_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.
| auto meshlib::QuadraticForm2f::c | ( | ) | const -> &f32 |
Returns a pointer to a member variable of class MR::QuadraticForm2f named c.
Calls MR_QuadraticForm2f_Get_c(). The reference to this object might be preserved as the return value.
| auto meshlib::QuadraticForm2f::c_mut | ( | ) | -> &mut f32 |
Returns a mutable pointer to a member variable of class MR::QuadraticForm2f named c.
Calls MR_QuadraticForm2f_GetMutable_c(). The reference to this object might be preserved as the return value.
|
static |
Constructs MR::QuadraticForm2f elementwise.
Calls MR_QuadraticForm2f_ConstructFrom(). The reference to the parameter A might be preserved in the constructed object.
|
static |
Generated from constructor MR::QuadraticForm2f::QuadraticForm2f.
Calls MR_QuadraticForm2f_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| auto meshlib::QuadraticForm2f::eval | ( | x:&meshlib::Vector2f | ) | const -> f32 |
evaluates the function at given x Generated from method MR::QuadraticForm2f::eval.
Calls MR_QuadraticForm2f_eval().
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_QuadraticForm2f_DefaultConstruct().
| void meshlib::QuadraticForm2f::set_a | ( | value:&meshlib::SymMatrix2f | ) |
Modifies a member variable of class MR::QuadraticForm2f named A.
Calls MR_QuadraticForm2f_Set_A(). The reference to the parameter value might be preserved in this object in element A.
| void meshlib::QuadraticForm2f::set_c | ( | value:f32 | ) |
Modifies a member variable of class MR::QuadraticForm2f named c.
Calls MR_QuadraticForm2f_Set_c().