Home | History | Annotate | Download | only in Geometry

Lines Matching full:hyperplane

62   explicit ParametrizedLine(const Hyperplane<_Scalar, _AmbientDim, OtherOptions>& hyperplane);
99 Scalar intersectionParameter(const Hyperplane<_Scalar, _AmbientDim, OtherOptions>& hyperplane) const;
102 Scalar intersection(const Hyperplane<_Scalar, _AmbientDim, OtherOptions>& hyperplane) const;
105 VectorType intersectionPoint(const Hyperplane<_Scalar, _AmbientDim, OtherOptions>& hyperplane) const;
140 /** Constructs a parametrized line from a 2D hyperplane
142 * \warning the ambient space must have dimension 2 such that the hyperplane actually describes a line
146 inline ParametrizedLine<_Scalar, _AmbientDim,_Options>::ParametrizedLine(const Hyperplane<_Scalar, _AmbientDim,OtherOptions>& hyperplane)
149 direction() = hyperplane.normal().unitOrthogonal();
150 origin() = -hyperplane.normal()*hyperplane.offset();
162 /** \returns the parameter value of the intersection between \c *this and the given \a hyperplane
166 inline _Scalar ParametrizedLine<_Scalar, _AmbientDim,_Options>::intersectionParameter(const Hyperplane<_Scalar, _AmbientDim, OtherOptions>& hyperplane) const
168 return -(hyperplane.offset()+hyperplane.normal().dot(origin()))
169 / hyperplane.normal().dot(direction());
174 * \returns the parameter value of the intersection between \c *this and the given \a hyperplane
178 inline _Scalar ParametrizedLine<_Scalar, _AmbientDim,_Options>::intersection(const Hyperplane<_Scalar, _AmbientDim, OtherOptions>& hyperplane) const
180 return intersectionParameter(hyperplane);
183 /** \returns the point of the intersection between \c *this and the given hyperplane
188 ParametrizedLine<_Scalar, _AmbientDim,_Options>::intersectionPoint(const Hyperplane<_Scalar, _AmbientDim, OtherOptions>& hyperplane) const
190 return pointAt(intersectionParameter(hyperplane));