#include <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 |
Related Symbols | |
(Note that these are not member symbols.) | |
template<typename V > | |
MRMESH_API 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 > | |
MRMESH_API QuadraticForm< V > | sumAt (const QuadraticForm< V > &q0, const V &x0, const QuadraticForm< V > &q1, const V &x1, const V &pos) |
quadratic form: f = x^T A x + c
using MR::QuadraticForm< V >::SM = typename V::SymMatrixType |
using MR::QuadraticForm< V >::T = typename V::ValueType |
|
inline |
adds to this squared distance to line passing via origin with given unit direction
|
inline |
|
inline |
adds to this squared distance to the origin point
|
inline |
adds to this squared distance to plane passing via origin with given unit normal
|
inline |
|
inlinenodiscard |
evaluates the function at given x
|
related |
if true then the minimum is selected only between points x0 and x1
given two quadratic forms with points where they reach minima, computes sum quadratic form and the point where it reaches minimum
|
related |
given two quadratic forms with points where they reach minima, computes sum quadratic form and the point (pos)
SM MR::QuadraticForm< V >::A |
T MR::QuadraticForm< V >::c = 0 |