EIGEN_DEVICE_FUNC ParametrizedLine ()
Default constructor without initialization.
template<int OtherOptions>
EIGEN_DEVICE_FUNC ParametrizedLine (const ParametrizedLine < Scalar, AmbientDimAtCompileTime, OtherOptions > &other)
EIGEN_DEVICE_FUNC ParametrizedLine (Index _dim )
Constructs a dynamic-size line with _dim the dimension of the ambient space.
EIGEN_DEVICE_FUNC ParametrizedLine (const VectorType &origin, const VectorType &direction)
Initializes a parametrized line of direction direction and origin origin .
template<int OtherOptions>
EIGEN_DEVICE_FUNC ParametrizedLine (const Hyperplane < _Scalar, _AmbientDim , OtherOptions > &hyperplane )
Constructs a parametrized line from a 2D hyperplane.
EIGEN_DEVICE_FUNC Index dim () const
EIGEN_DEVICE_FUNC const VectorType & origin () const
EIGEN_DEVICE_FUNC VectorType & origin ()
EIGEN_DEVICE_FUNC const VectorType & direction () const
EIGEN_DEVICE_FUNC VectorType & direction ()
EIGEN_DEVICE_FUNC RealScalar squaredDistance (const VectorType &p) const
EIGEN_DEVICE_FUNC RealScalar distance (const VectorType &p) const
EIGEN_DEVICE_FUNC VectorType projection (const VectorType &p) const
EIGEN_DEVICE_FUNC VectorType pointAt (const Scalar &t) const
template<int OtherOptions>
EIGEN_DEVICE_FUNC Scalar intersectionParameter (const Hyperplane < _Scalar, _AmbientDim , OtherOptions > &hyperplane ) const
template<int OtherOptions>
EIGEN_DEVICE_FUNC Scalar intersection (const Hyperplane < _Scalar, _AmbientDim , OtherOptions > &hyperplane ) const
template<int OtherOptions>
EIGEN_DEVICE_FUNC VectorType intersectionPoint (const Hyperplane < _Scalar, _AmbientDim , OtherOptions > &hyperplane ) const
template<typename XprType >
EIGEN_DEVICE_FUNC ParametrizedLine & transform (const MatrixBase < XprType > &mat , TransformTraits traits=Affine )
Applies the transformation matrix mat to *this and returns a reference to *this.
template<int TrOptions>
EIGEN_DEVICE_FUNC ParametrizedLine & transform (const Transform < Scalar, AmbientDimAtCompileTime, Affine , TrOptions > &t, TransformTraits traits=Affine )
Applies the transformation t to *this and returns a reference to *this.
template<typename NewScalarType >
EIGEN_DEVICE_FUNC internal::cast_return_type < ParametrizedLine , ParametrizedLine < NewScalarType, AmbientDimAtCompileTime, Options > >::type cast () const
template<typename OtherScalarType , int OtherOptions>
EIGEN_DEVICE_FUNC ParametrizedLine (const ParametrizedLine < OtherScalarType , AmbientDimAtCompileTime, OtherOptions > &other)
Copy constructor with scalar type conversion.
EIGEN_DEVICE_FUNC bool isApprox (const ParametrizedLine &other, const typename NumTraits < Scalar >::Real &prec =NumTraits < Scalar >::dummy_precision()) const
template<int OtherOptions>
EIGEN_DEVICE_FUNC _Scalar intersectionParameter (const Hyperplane < _Scalar, _AmbientDim , OtherOptions > &hyperplane ) const
template<int OtherOptions>
EIGEN_DEVICE_FUNC _Scalar intersection (const Hyperplane < _Scalar, _AmbientDim , OtherOptions > &hyperplane ) const
template<
typename _Scalar, int _AmbientDim, int _Options>
class Eigen::ParametrizedLine< _Scalar, _AmbientDim, _Options >
\geometry_module
A parametrized line
A parametrized line is defined by an origin point and a unit direction vector such that the line corresponds to the set , .
Template Parameters
_Scalar the scalar type, i.e., the type of the coefficients
_AmbientDim the dimension of the ambient space, can be a compile time value or Dynamic.