template<typename _Scalar, int _AmbientDim, int _Options>
class Eigen::ParametrizedLine< _Scalar, _AmbientDim, _Options >
A parametrized line.
This is defined in the Geometry module.
#include <Eigen/Geometry>
A parametrized line is defined by an origin point \( \mathbf{o} \) and a unit direction vector \( \mathbf{d} \) such that the line corresponds to the set \( l(t) = \mathbf{o} + t \mathbf{d} \), \( t \in \mathbf{R} \).
- 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. |
|
| template<typename NewScalarType > |
| internal::cast_return_type< ParametrizedLine, ParametrizedLine< NewScalarType, AmbientDimAtCompileTime, Options > >::type | cast () const |
| |
| Index | dim () const |
| |
| RealScalar | distance (const VectorType &p) const |
| |
| template<int OtherOptions> |
| _Scalar | intersection (const Hyperplane< _Scalar, _AmbientDim, OtherOptions > &hyperplane) const |
| |
| template<int OtherOptions> |
| _Scalar | intersectionParameter (const Hyperplane< _Scalar, _AmbientDim, OtherOptions > &hyperplane) const |
| |
| template<int OtherOptions> |
| VectorType | intersectionPoint (const Hyperplane< _Scalar, _AmbientDim, OtherOptions > &hyperplane) const |
| |
| bool | isApprox (const ParametrizedLine &other, const typename NumTraits< Scalar >::Real &prec=NumTraits< Scalar >::dummy_precision()) const |
| |
| | ParametrizedLine () |
| |
| template<int OtherOptions> |
| | ParametrizedLine (const Hyperplane< _Scalar, _AmbientDim, OtherOptions > &hyperplane) |
| |
| template<typename OtherScalarType , int OtherOptions> |
| | ParametrizedLine (const ParametrizedLine< OtherScalarType, AmbientDimAtCompileTime, OtherOptions > &other) |
| |
| | ParametrizedLine (const VectorType &origin, const VectorType &direction) |
| |
| | ParametrizedLine (Index _dim) |
| |
| VectorType | pointAt (const Scalar &t) const |
| |
| VectorType | projection (const VectorType &p) const |
| |
| RealScalar | squaredDistance (const VectorType &p) const |
| |
| template<typename XprType > |
| ParametrizedLine & | transform (const MatrixBase< XprType > &mat, TransformTraits traits=Affine) |
| |
| template<int TrOptions> |
| ParametrizedLine & | transform (const Transform< Scalar, AmbientDimAtCompileTime, Affine, TrOptions > &t, TransformTraits traits=Affine) |
| |