Go to the documentation of this file. 1 #ifndef __GfxTL_PLANE_HEADER__
2 #define __GfxTL_PLANE_HEADER__
13 template<
class Po
intT >
27 template<
class Po
intsForwardIt,
class WeightsForwardIt >
29 PointsForwardIt end, WeightsForwardIt weights);
30 template<
class Po
intsForwardIt >
33 template<
class Po
intsForwardIt,
class WeightsForwardIt >
34 bool Fit(PointsForwardIt begin, PointsForwardIt end,
35 WeightsForwardIt weights);
36 template<
class Po
intsForwardIt >
37 bool Fit(PointsForwardIt begin, PointsForwardIt end);
62 template<
class Po
intT >
63 template<
class Po
intsForwardIt,
class WeightsForwardIt >
65 PointsForwardIt end, WeightsForwardIt weights)
95 for (
unsigned int i = 0; i < PointType::Dim; ++i)
101 _d = -(_normal * origin);
105 template<
class Po
intT >
106 template<
class Po
intsForwardIt >
113 template<
class Po
intT >
114 template<
class Po
intsForwardIt,
class WeightsForwardIt >
116 PointsForwardIt end, WeightsForwardIt weights)
123 Mean(begin, end, weights, &com);
124 bool retVal = Fit(com, begin, end, weights);
146 template<
class Po
intT >
147 template<
class Po
intsForwardIt >
153 template<
class Po
intT >
PointType::ScalarType ScalarType
void OffsetInNormalDirection(ScalarType offset)
void Orient(const PointType &n)
Plane(PointType n, ScalarType d)
ScalarType Intersect(const PointType &p, const PointType &r) const
void Origin(const PointType &o)
static ScalarT Abs(ScalarT s)
ScalarType SignedDistanceToOrigin() const
void EigSortDesc(VectorXD< N, T > *d, MatrixXX< N, N, T > *v)
void Mean(PointsForwardIt begin, PointsForwardIt end, WeightsForwardIt weights, PointT *mean)
bool Jacobi(const MatrixXX< N, N, T > &m, VectorXD< N, T > *d, MatrixXX< N, N, T > *v, int *nrot=NULL)
void Set(const PointType &origin, const PointType &normal)
void Project(const PointType &p, PointType *s) const
ScalarType SignedDistance(const PointType &p) const
double v(double t, double v0, double a0, double j)
void CovarianceMatrix(const PointT ¢er, PointsForwardIt begin, PointsForwardIt end, WeightsForwardIt weights, MatrixT *matrix)
ScalarType Distance(const PointType &p) const
bool Fit(const PointType &origin, PointsForwardIt begin, PointsForwardIt end, WeightsForwardIt weights)
double s(double t, double s0, double v0, double a0, double j)