Public Member Functions | |
| auto | assign_from_another (_other:&meshlib::QuadraticForm2d) -> &mut meshlib::QuadraticForm2d |
| auto | eval (x:&meshlib::Vector2d) const -> f64 |
| void | add_dist_to_origin (weight:f64) |
| void | add_dist_to_plane_1 (planeUnitNormal:&meshlib::Vector2d) |
| void | add_dist_to_plane_2 (planeUnitNormal:&meshlib::Vector2d, weight:f64) |
| void | add_dist_to_line_1 (lineUnitDir:&meshlib::Vector2d) |
| void | add_dist_to_line_2 (lineUnitDir:&meshlib::Vector2d, weight:f64) |
| auto | a () const -> &meshlib::SymMatrix2d |
| auto | a_mut () -> &mut meshlib::SymMatrix2d |
| void | set_a (value:&meshlib::SymMatrix2d) |
| auto | c () const -> &f64 |
| auto | c_mut () -> &mut f64 |
| void | set_c (value:f64) |
Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::QuadraticForm2d > |
| static auto | construct_from (A:&meshlib::SymMatrix2d, c:f64) -> meshlib::Owned< meshlib::QuadraticForm2d > |
| static auto | construct_from_another (_other:&meshlib::QuadraticForm2d) -> meshlib::Owned< meshlib::QuadraticForm2d > |
| 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::QuadraticForm2d.
Generated from class MR::QuadraticForm2d. Heap-allocated instances are held in Owned<QuadraticForm2d>.
| auto meshlib::QuadraticForm2d::a | ( | ) | const -> &meshlib::SymMatrix2d |
Returns a pointer to a member variable of class MR::QuadraticForm2d named A.
Calls MR_QuadraticForm2d_Get_A(). The reference to this object might be preserved as the return value.
| auto meshlib::QuadraticForm2d::a_mut | ( | ) | -> &mut meshlib::SymMatrix2d |
Returns a mutable pointer to a member variable of class MR::QuadraticForm2d named A.
Calls MR_QuadraticForm2d_GetMutable_A(). The reference to this object might be preserved as the return value.
| void meshlib::QuadraticForm2d::add_dist_to_line_1 | ( | lineUnitDir:&meshlib::Vector2d | ) |
adds to this squared distance to line passing via origin with given unit direction Generated from method MR::QuadraticForm2d::addDistToLine.
Calls MR_QuadraticForm2d_addDistToLine_1().
| void meshlib::QuadraticForm2d::add_dist_to_line_2 | ( | lineUnitDir:&meshlib::Vector2d | , |
| weight:f64 | ) |
Generated from method MR::QuadraticForm2d::addDistToLine.
Calls MR_QuadraticForm2d_addDistToLine_2().
| void meshlib::QuadraticForm2d::add_dist_to_origin | ( | weight:f64 | ) |
adds to this squared distance to the origin point Generated from method MR::QuadraticForm2d::addDistToOrigin.
Calls MR_QuadraticForm2d_addDistToOrigin().
| void meshlib::QuadraticForm2d::add_dist_to_plane_1 | ( | planeUnitNormal:&meshlib::Vector2d | ) |
adds to this squared distance to plane passing via origin with given unit normal Generated from method MR::QuadraticForm2d::addDistToPlane.
Calls MR_QuadraticForm2d_addDistToPlane_1().
| void meshlib::QuadraticForm2d::add_dist_to_plane_2 | ( | planeUnitNormal:&meshlib::Vector2d | , |
| weight:f64 | ) |
Generated from method MR::QuadraticForm2d::addDistToPlane.
Calls MR_QuadraticForm2d_addDistToPlane_2().
| auto meshlib::QuadraticForm2d::assign_from_another | ( | _other:&meshlib::QuadraticForm2d | ) | -> &mut meshlib::QuadraticForm2d |
Generated from method MR::QuadraticForm2d::operator=.
Calls MR_QuadraticForm2d_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.
| auto meshlib::QuadraticForm2d::c | ( | ) | const -> &f64 |
Returns a pointer to a member variable of class MR::QuadraticForm2d named c.
Calls MR_QuadraticForm2d_Get_c(). The reference to this object might be preserved as the return value.
| auto meshlib::QuadraticForm2d::c_mut | ( | ) | -> &mut f64 |
Returns a mutable pointer to a member variable of class MR::QuadraticForm2d named c.
Calls MR_QuadraticForm2d_GetMutable_c(). The reference to this object might be preserved as the return value.
|
static |
Constructs MR::QuadraticForm2d elementwise.
Calls MR_QuadraticForm2d_ConstructFrom(). The reference to the parameter A might be preserved in the constructed object.
|
static |
Generated from constructor MR::QuadraticForm2d::QuadraticForm2d.
Calls MR_QuadraticForm2d_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| auto meshlib::QuadraticForm2d::eval | ( | x:&meshlib::Vector2d | ) | const -> f64 |
evaluates the function at given x Generated from method MR::QuadraticForm2d::eval.
Calls MR_QuadraticForm2d_eval().
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_QuadraticForm2d_DefaultConstruct().
| void meshlib::QuadraticForm2d::set_a | ( | value:&meshlib::SymMatrix2d | ) |
Modifies a member variable of class MR::QuadraticForm2d named A.
Calls MR_QuadraticForm2d_Set_A(). The reference to the parameter value might be preserved in this object in element A.
| void meshlib::QuadraticForm2d::set_c | ( | value:f64 | ) |
Modifies a member variable of class MR::QuadraticForm2d named c.
Calls MR_QuadraticForm2d_Set_c().