|
| ParametrizedLine () |
| Default constructor without initialization.
|
|
| ParametrizedLine (int _dim) |
| Constructs a dynamic-size line with _dim the dimension of the ambient space.
|
|
| ParametrizedLine (const VectorType &origin, const VectorType &direction) |
| Initializes a parametrized line of direction direction and origin origin. More...
|
|
| ParametrizedLine (const Hyperplane< _Scalar, _AmbientDim > &hyperplane) |
| Constructs a parametrized line from a 2D hyperplane. More...
|
|
int | dim () const |
|
const VectorType & | origin () const |
|
VectorType & | origin () |
|
const VectorType & | direction () const |
|
VectorType & | direction () |
|
RealScalar | squaredDistance (const VectorType &p) const |
|
RealScalar | distance (const VectorType &p) const |
|
VectorType | projection (const VectorType &p) const |
|
Scalar | intersection (const Hyperplane< _Scalar, _AmbientDim > &hyperplane) |
|
template<typename NewScalarType > |
internal::cast_return_type< ParametrizedLine, ParametrizedLine< NewScalarType, AmbientDimAtCompileTime > >::type | cast () const |
|
template<typename OtherScalarType > |
| ParametrizedLine (const ParametrizedLine< OtherScalarType, AmbientDimAtCompileTime > &other) |
| Copy constructor with scalar type conversion.
|
|
bool | isApprox (const ParametrizedLine &other, typename NumTraits< Scalar >::Real prec=precision< Scalar >()) const |
|
| ParametrizedLine () |
| Default constructor without initialization.
|
|
template<int OtherOptions> |
| ParametrizedLine (const ParametrizedLine< Scalar, AmbientDimAtCompileTime, OtherOptions > &other) |
|
| ParametrizedLine (Index _dim) |
| Constructs a dynamic-size line with _dim the dimension of the ambient space.
|
|
| ParametrizedLine (const VectorType &origin, const VectorType &direction) |
| Initializes a parametrized line of direction direction and origin origin. More...
|
|
template<int OtherOptions> |
| ParametrizedLine (const Hyperplane< _Scalar, _AmbientDim, OtherOptions > &hyperplane) |
| Constructs a parametrized line from a 2D hyperplane. More...
|
|
Index | dim () const |
|
const VectorType & | origin () const |
|
VectorType & | origin () |
|
const VectorType & | direction () const |
|
VectorType & | direction () |
|
RealScalar | squaredDistance (const VectorType &p) const |
|
RealScalar | distance (const VectorType &p) const |
|
VectorType | projection (const VectorType &p) const |
|
VectorType | pointAt (const Scalar &t) const |
|
template<int OtherOptions> |
Scalar | intersectionParameter (const Hyperplane< _Scalar, _AmbientDim, OtherOptions > &hyperplane) const |
|
template<int OtherOptions> |
Scalar | intersection (const Hyperplane< _Scalar, _AmbientDim, OtherOptions > &hyperplane) const |
|
template<int OtherOptions> |
VectorType | intersectionPoint (const Hyperplane< _Scalar, _AmbientDim, OtherOptions > &hyperplane) const |
|
template<typename NewScalarType > |
internal::cast_return_type< ParametrizedLine, ParametrizedLine< NewScalarType, AmbientDimAtCompileTime, Options > >::type | cast () const |
|
template<typename OtherScalarType , int OtherOptions> |
| ParametrizedLine (const ParametrizedLine< OtherScalarType, AmbientDimAtCompileTime, OtherOptions > &other) |
| Copy constructor with scalar type conversion.
|
|
bool | isApprox (const ParametrizedLine &other, const typename NumTraits< Scalar >::Real &prec=NumTraits< Scalar >::dummy_precision()) const |
|
template<int OtherOptions> |
_Scalar | intersectionParameter (const Hyperplane< _Scalar, _AmbientDim, OtherOptions > &hyperplane) const |
|
template<int OtherOptions> |
_Scalar | intersection (const Hyperplane< _Scalar, _AmbientDim, OtherOptions > &hyperplane) const |
|
template<typename _Scalar, int _AmbientDim>
class Eigen::ParametrizedLine< _Scalar, _AmbientDim >
A parametrized line
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} \), \( l \in \mathbf{R} \).
- 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. |
A parametrized line
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} \).
- 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. |