A parametrized line. More...
Public Member Functions | |
| 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 |
| bool | isApprox (const ParametrizedLine &other, typename NumTraits< Scalar >::Real prec=NumTraits< Scalar >::dummy_precision()) const |
| ParametrizedLine () | |
| ParametrizedLine (Index _dim) | |
| ParametrizedLine (const VectorType &origin, const VectorType &direction) | |
| template<int OtherOptions> | |
| ParametrizedLine (const Hyperplane< _Scalar, _AmbientDim, OtherOptions > &hyperplane) | |
| template<typename OtherScalarType , int OtherOptions> | |
| ParametrizedLine (const ParametrizedLine< OtherScalarType, AmbientDimAtCompileTime, OtherOptions > &other) | |
| VectorType | projection (const VectorType &p) const |
| RealScalar | squaredDistance (const VectorType &p) const |
Static Public Member Functions | |
| static ParametrizedLine | Through (const VectorType &p0, const VectorType &p1) |
A parametrized line.
This is defined in the Geometry module.
#include <Eigen/Geometry>
A parametrized line is defined by an origin point
and a unit direction vector
such that the line corresponds to the set
,
.
| _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. |
| ParametrizedLine | ( | ) | [inline, explicit] |
Default constructor without initialization
| ParametrizedLine | ( | Index | _dim | ) | [inline, explicit] |
Constructs a dynamic-size line with _dim the dimension of the ambient space
| ParametrizedLine | ( | const VectorType & | origin, |
| const VectorType & | direction | ||
| ) | [inline] |
Initializes a parametrized line of direction direction and origin origin.
| ParametrizedLine | ( | const Hyperplane< _Scalar, _AmbientDim, OtherOptions > & | hyperplane | ) | [inline, explicit] |
Constructs a parametrized line from a 2D hyperplane
| ParametrizedLine | ( | const ParametrizedLine< OtherScalarType, AmbientDimAtCompileTime, OtherOptions > & | other | ) | [inline, explicit] |
Copy constructor with scalar type conversion
| internal::cast_return_type<ParametrizedLine, ParametrizedLine<NewScalarType,AmbientDimAtCompileTime,Options> >::type cast | ( | ) | const [inline] |
*this with scalar type casted to NewScalarType Note that if NewScalarType is equal to the current scalar type of *this then this function smartly returns a const reference to *this.
| Index dim | ( | ) | const [inline] |
| RealScalar distance | ( | const VectorType & | p | ) | const [inline] |
*this. | _Scalar intersection | ( | const Hyperplane< _Scalar, _AmbientDim, OtherOptions > & | hyperplane | ) | const [inline] |
*this and the given hyperplane | bool isApprox | ( | const ParametrizedLine< _Scalar, _AmbientDim, _Options > & | other, |
| typename NumTraits< Scalar >::Real | prec = NumTraits<Scalar>::dummy_precision() |
||
| ) | const [inline] |
true if *this is approximately equal to other, within the precision determined by prec.| VectorType projection | ( | const VectorType & | p | ) | const [inline] |
*this. | RealScalar squaredDistance | ( | const VectorType & | p | ) | const [inline] |
*this. | static ParametrizedLine Through | ( | const VectorType & | p0, |
| const VectorType & | p1 | ||
| ) | [inline, static] |
Constructs a parametrized line going from p0 to p1.
1.7.6.1