Home | History | Annotate | Download | only in Geometry

Lines Matching full:hyperplane

51   explicit ParametrizedLine(const Hyperplane<_Scalar, _AmbientDim>& hyperplane);
85 Scalar intersection(const Hyperplane<_Scalar, _AmbientDim>& hyperplane);
120 /** Constructs a parametrized line from a 2D hyperplane
122 * \warning the ambient space must have dimension 2 such that the hyperplane actually describes a line
125 inline ParametrizedLine<_Scalar, _AmbientDim>::ParametrizedLine(const Hyperplane<_Scalar, _AmbientDim>& hyperplane)
128 direction() = hyperplane.normal().unitOrthogonal();
129 origin() = -hyperplane.normal()*hyperplane.offset();
132 /** \returns the parameter value of the intersection between \c *this and the given hyperplane
135 inline _Scalar ParametrizedLine<_Scalar, _AmbientDim>::intersection(const Hyperplane<_Scalar, _AmbientDim>& hyperplane)
137 return -(hyperplane.offset()+origin().eigen2_dot(hyperplane.normal()))
138 /(direction().eigen2_dot(hyperplane.normal()));