Go to the documentation of this file. 1 #ifndef __GfxTL_PLANE_HEADER__
2 #define __GfxTL_PLANE_HEADER__
13 template <
class Po
intT>
28 template <
class Po
intsForwardIt,
class WeightsForwardIt>
30 PointsForwardIt begin,
32 WeightsForwardIt weights);
33 template <
class Po
intsForwardIt>
34 bool Fit(
const PointType& origin, PointsForwardIt begin, PointsForwardIt end);
35 template <
class Po
intsForwardIt,
class WeightsForwardIt>
36 bool Fit(PointsForwardIt begin, PointsForwardIt end, WeightsForwardIt weights);
37 template <
class Po
intsForwardIt>
38 bool Fit(PointsForwardIt begin, PointsForwardIt end);
68 template <
class Po
intT>
69 template <
class Po
intsForwardIt,
class WeightsForwardIt>
72 PointsForwardIt begin,
74 WeightsForwardIt weights)
104 for (
unsigned int i = 0; i < PointType::Dim; ++i)
110 _d = -(_normal * origin);
114 template <
class Po
intT>
115 template <
class Po
intsForwardIt>
122 template <
class Po
intT>
123 template <
class Po
intsForwardIt,
class WeightsForwardIt>
132 Mean(begin, end, weights, &com);
133 bool retVal = Fit(com, begin, end, weights);
155 template <
class Po
intT>
156 template <
class Po
intsForwardIt>
163 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)
constexpr auto n() noexcept
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)