35 #ifndef LVR2_GEOMETRY_PLANE_H_ 36 #define LVR2_GEOMETRY_PLANE_H_ 49 template <
typename BaseVecT>
58 BaseVecT
project(
const BaseVecT& other)
const;
67 float distance(
const BaseVecT& other)
const;
73 template<
typename BaseVecT>
74 inline std::ostream& operator<<(std::ostream& os, const Plane<BaseVecT>&
p)
76 os <<
"Plane[" <<
p.normal <<
", " <<
p.pos <<
"]";
82 #include "lvr2/geometry/Plane.tcc" BaseVecT project(const BaseVecT &other) const
Projects the given point onto the plane and returns the projection point.
float distance(const BaseVecT &other) const
Calculates the distance between the plane and the given point.
Line< BaseVecT > intersect(const Plane< BaseVecT > &other) const
Calculates the intersection between this and other.
Normal< typename BaseVecT::CoordType > normal