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

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

Detailed Description

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>.

Member Function Documentation

◆ a()

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.

◆ a_mut()

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.

◆ add_dist_to_line_1()

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().

◆ add_dist_to_line_2()

void meshlib::QuadraticForm2d::add_dist_to_line_2 ( lineUnitDir:&meshlib::Vector2d ,
weight:f64  )

Generated from method MR::QuadraticForm2d::addDistToLine.

Calls MR_QuadraticForm2d_addDistToLine_2().

◆ add_dist_to_origin()

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().

◆ add_dist_to_plane_1()

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().

◆ add_dist_to_plane_2()

void meshlib::QuadraticForm2d::add_dist_to_plane_2 ( planeUnitNormal:&meshlib::Vector2d ,
weight:f64  )

Generated from method MR::QuadraticForm2d::addDistToPlane.

Calls MR_QuadraticForm2d_addDistToPlane_2().

◆ assign_from_another()

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.

◆ c()

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.

◆ c_mut()

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.

◆ construct_from()

auto meshlib::QuadraticForm2d::construct_from ( A:&meshlib::SymMatrix2d ,
c:f64  ) -> meshlib::Owned< meshlib::QuadraticForm2d >
static

Constructs MR::QuadraticForm2d elementwise.

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

◆ construct_from_another()

auto meshlib::QuadraticForm2d::construct_from_another ( _other:&meshlib::QuadraticForm2d ) -> meshlib::Owned< meshlib::QuadraticForm2d >
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.

◆ eval()

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().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_QuadraticForm2d_DefaultConstruct().

◆ set_a()

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.

◆ set_c()

void meshlib::QuadraticForm2d::set_c ( value:f64 )

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

Calls MR_QuadraticForm2d_Set_c().


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