14 using T =
typename V::ValueType;
15 using SM =
typename V::SymMatrixType;
21 [[nodiscard]]
T eval(
const V & x )
const {
return dot( x,
A * x ) +
c; }
27 void addDistToPlane(
const V & planeUnitNormal ) {
A += outerSquare( planeUnitNormal ); }
28 void addDistToPlane(
const V & planeUnitNormal,
T weight ) {
A += weight * outerSquare( planeUnitNormal ); }
31 void addDistToLine(
const V & lineUnitDir ) {
A += SM::identity() - outerSquare( lineUnitDir ); }
32 void addDistToLine(
const V & lineUnitDir,
T weight ) {
A += weight * ( SM::identity() - outerSquare( lineUnitDir ) ); }
42 bool minAmong01 =
false );
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
Definition MRCameraOrientationPlugin.h:8