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

Public Member Functions

auto assign_from_another (_other:&meshlib::QuadraticForm3d) -> &mut meshlib::QuadraticForm3d
auto eval (x:&meshlib::Vector3d) const -> f64
void add_dist_to_origin (weight:f64)
void add_dist_to_plane_1 (planeUnitNormal:&meshlib::Vector3d)
void add_dist_to_plane_2 (planeUnitNormal:&meshlib::Vector3d, weight:f64)
void add_dist_to_line_1 (lineUnitDir:&meshlib::Vector3d)
void add_dist_to_line_2 (lineUnitDir:&meshlib::Vector3d, weight:f64)
auto a () const -> &meshlib::SymMatrix3d
auto a_mut () -> &mut meshlib::SymMatrix3d
void set_a (value:&meshlib::SymMatrix3d)
auto c () const -> &f64
auto c_mut () -> &mut f64
void set_c (value:f64)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::QuadraticForm3d >
static auto construct_from (A:&meshlib::SymMatrix3d, c:f64) -> meshlib::Owned< meshlib::QuadraticForm3d >
static auto construct_from_another (_other:&meshlib::QuadraticForm3d) -> meshlib::Owned< meshlib::QuadraticForm3d >
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::QuadraticForm3d.

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

Member Function Documentation

◆ a()

auto meshlib::QuadraticForm3d::a ( ) const -> &meshlib::SymMatrix3d

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

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

◆ a_mut()

auto meshlib::QuadraticForm3d::a_mut ( ) -> &mut meshlib::SymMatrix3d

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

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

◆ add_dist_to_line_1()

void meshlib::QuadraticForm3d::add_dist_to_line_1 ( lineUnitDir:&meshlib::Vector3d )

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

Calls MR_QuadraticForm3d_addDistToLine_1().

◆ add_dist_to_line_2()

void meshlib::QuadraticForm3d::add_dist_to_line_2 ( lineUnitDir:&meshlib::Vector3d ,
weight:f64  )

Generated from method MR::QuadraticForm3d::addDistToLine.

Calls MR_QuadraticForm3d_addDistToLine_2().

◆ add_dist_to_origin()

void meshlib::QuadraticForm3d::add_dist_to_origin ( weight:f64 )

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

Calls MR_QuadraticForm3d_addDistToOrigin().

◆ add_dist_to_plane_1()

void meshlib::QuadraticForm3d::add_dist_to_plane_1 ( planeUnitNormal:&meshlib::Vector3d )

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

Calls MR_QuadraticForm3d_addDistToPlane_1().

◆ add_dist_to_plane_2()

void meshlib::QuadraticForm3d::add_dist_to_plane_2 ( planeUnitNormal:&meshlib::Vector3d ,
weight:f64  )

Generated from method MR::QuadraticForm3d::addDistToPlane.

Calls MR_QuadraticForm3d_addDistToPlane_2().

◆ assign_from_another()

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

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

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

◆ c()

auto meshlib::QuadraticForm3d::c ( ) const -> &f64

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

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

◆ c_mut()

auto meshlib::QuadraticForm3d::c_mut ( ) -> &mut f64

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

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

◆ construct_from()

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

Constructs MR::QuadraticForm3d elementwise.

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

◆ construct_from_another()

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

Generated from constructor MR::QuadraticForm3d::QuadraticForm3d.

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

◆ eval()

auto meshlib::QuadraticForm3d::eval ( x:&meshlib::Vector3d ) const -> f64

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

Calls MR_QuadraticForm3d_eval().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_QuadraticForm3d_DefaultConstruct().

◆ set_a()

void meshlib::QuadraticForm3d::set_a ( value:&meshlib::SymMatrix3d )

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

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

◆ set_c()

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

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

Calls MR_QuadraticForm3d_Set_c().


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