MeshLib C++ Docs
Loading...
Searching...
No Matches

#include <MRMesh/MRQuadraticForm.h>

Public Types

using T = typename V::ValueType
using SM = typename V::SymMatrixType

Public Member Functions

T eval (const V &x) const
 evaluates the function at given x
void addDistToOrigin (T weight)
 adds to this squared distance to the origin point
void addDistToPlane (const V &planeUnitNormal)
 adds to this squared distance to plane passing via origin with given unit normal
void addDistToPlane (const V &planeUnitNormal, T weight)
void addDistToLine (const V &lineUnitDir)
 adds to this squared distance to line passing via origin with given unit direction
void addDistToLine (const V &lineUnitDir, T weight)

Public Attributes

SM A
T c = 0

(Note that these are not member symbols.)

template<typename V>
std::pair< QuadraticForm< V >, V > sum (const QuadraticForm< V > &q0, const V &x0, const QuadraticForm< V > &q1, const V &x1, bool minAmong01=false)
 if true then the minimum is selected only between points x0 and x1
template<typename V>
QuadraticForm< V > sumAt (const QuadraticForm< V > &q0, const V &x0, const QuadraticForm< V > &q1, const V &x1, const V &pos)

Detailed Description

template<typename V>
struct MR::QuadraticForm< V >

quadratic form: f = x^T A x + c


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