17 #ifndef AGX_REGRESSIONPLANE_H
18 #define AGX_REGRESSIONPLANE_H
81 const size_t numPoints);
105 bool isPlane()
const;
114 void computeRegressionPlane (
133 return m_dimensionType;
138 return m_maxDeterminant;
145 return m_averagePoint;
152 return m_lineDirection;
165 return m_dimensionType ==
PLANE;
#define AGXPHYSICS_EXPORT
A plane created from points using least squares minimization.
agx::Real getMaxDeterminant() const
Returns the maximum determinant from the least squares minimization.
bool isPlane() const
Is the regression plane a plane (and not empty, point or line)?
agx::Vec3 getLineDirection() const
Gets the average point of the plane.
RegressionPlane(const agx::Vec3 &linearCoefficients, const agx::SPDMatrix3x3 &quadraticCoefficients, const agx::Vec3 &averagePoint, const size_t numPoints)
Creates a RegressionPlane from the coefficients precomputed from a number of 3D points.
DimensionType
Dimension type of the sub-space resulted by the regression.
agx::Plane getPlane() const
Gets the average point of the plane.
RegressionPlane(const agx::Vec3Vector &points)
DimensionType getDimensionType() const
Gets the dimension type of the plane.
agx::Vec3 getAveragePoint() const
Gets the average point of the plane.
RegressionPlane(const agxData::LocalVector< agx::Vec3 > &points)
Creates a RegressionPlane from a number of 3D-points.
Class representing the mathematical concept of a plane, also called a half- space.
Specialized type of matrices for holding symmetric positive definite matrices.
This namespace consists of a set of classes for handling geometric intersection tests including boole...
AGXMODEL_EXPORT agxPowerLine::PhysicalDimension::Type getDimensionType(const std::string &dimensionName)
The agx namespace contains the dynamics/math part of the AGX Dynamics API.