36 bool Init(
bool binary, std::istream* i);
38 void Init(
float* array);
83 bool equals(
Plane plane);
102 template <
class IteratorT>
103 bool LeastSquaresFit(IteratorT begin, IteratorT end);
107 void Serialize(
bool binary, std::ostream* o)
const;
108 static size_t SerializedSize();
109 void Serialize(FILE* o)
const;
110 void Serialize(
float* array)
const;
111 static size_t SerializedFloatSize();
113 void Transform(
float scale,
const Vec3f& translate);
114 float Intersect(
const Vec3f& p,
const Vec3f& r)
const;
122template <
class IteratorT>
129 pl.
Fit(mean, begin, end);
bool Fit(const PointType &origin, PointsForwardIt begin, PointsForwardIt end, WeightsForwardIt weights)
void Normal(PointType *normal) const
float getDistance(const Vec3f &pos) const
bool LeastSquaresFit(const PointCloud &pc, MiscLib::Vector< size_t >::const_iterator begin, MiscLib::Vector< size_t >::const_iterator end)
float DistanceAndNormal(const Vec3f &pos, Vec3f *n) const
const Vec3f & getPosition() const
const Vec3f & getNormal() const
float Distance(const Vec3f &pos) const
void Normal(const Vec3f &, Vec3f *n) const
bool Fit(const PointCloud &pc, MiscLib::Vector< size_t >::const_iterator begin, MiscLib::Vector< size_t >::const_iterator end)
float SignedDistance(const Vec3f &pos) const
float SignedDistToOrigin() const
void Mean(PointsForwardIt begin, PointsForwardIt end, WeightsForwardIt weights, PointT *mean)
VectorXD< 3, float > Vector3Df