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
,
.
| _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. |
Public Types | |
| enum | { AmbientDimAtCompileTime = _AmbientDim, Options = _Options } |
| typedef _Scalar | Scalar |
| typedef NumTraits< Scalar >::Real | RealScalar |
| typedef DenseIndex | Index |
| typedef Matrix< Scalar, AmbientDimAtCompileTime, 1, Options > | VectorType |
Public Member Functions | |
| 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. | |
| template<int OtherOptions> | |
| ParametrizedLine (const Hyperplane< _Scalar, _AmbientDim, OtherOptions > &hyperplane) | |
| Constructs a parametrized line from a 2D hyperplane. | |
| ~ParametrizedLine () | |
| 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 |
| template<int OtherOptions> | |
| Scalar | intersection (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, typename NumTraits< Scalar >::Real prec=NumTraits< Scalar >::dummy_precision()) const |
Static Public Member Functions | |
| static ParametrizedLine | Through (const VectorType &p0, const VectorType &p1) |
| Constructs a parametrized line going from p0 to p1. | |
Protected Attributes | |
| VectorType | m_origin |
| VectorType | m_direction |
| typedef NumTraits<Scalar>::Real Eigen::ParametrizedLine::RealScalar |
| typedef _Scalar Eigen::ParametrizedLine::Scalar |
| typedef Matrix<Scalar,AmbientDimAtCompileTime,1,Options> Eigen::ParametrizedLine::VectorType |
| Eigen::ParametrizedLine::ParametrizedLine | ( | ) | [inline, explicit] |
| Eigen::ParametrizedLine::ParametrizedLine | ( | const ParametrizedLine< Scalar, AmbientDimAtCompileTime, OtherOptions > & | other | ) | [inline] |
| Eigen::ParametrizedLine::ParametrizedLine | ( | Index | _dim | ) | [inline, explicit] |
| Eigen::ParametrizedLine::ParametrizedLine | ( | const VectorType & | origin, |
| const VectorType & | direction | ||
| ) | [inline] |
| Eigen::ParametrizedLine::ParametrizedLine | ( | const Hyperplane< _Scalar, _AmbientDim, OtherOptions > & | hyperplane | ) | [inline, explicit] |
| Eigen::ParametrizedLine::ParametrizedLine | ( | const ParametrizedLine< OtherScalarType, AmbientDimAtCompileTime, OtherOptions > & | other | ) | [inline, explicit] |
| internal::cast_return_type<ParametrizedLine, ParametrizedLine<NewScalarType,AmbientDimAtCompileTime,Options> >::type Eigen::ParametrizedLine::cast | ( | ) | const [inline] |
| Index Eigen::ParametrizedLine::dim | ( | ) | const [inline] |
| const VectorType& Eigen::ParametrizedLine::direction | ( | ) | const [inline] |
| VectorType& Eigen::ParametrizedLine::direction | ( | ) | [inline] |
| RealScalar Eigen::ParametrizedLine::distance | ( | const VectorType & | p | ) | const [inline] |
*this. | _Scalar Eigen::ParametrizedLine::intersection | ( | const Hyperplane< _Scalar, _AmbientDim, OtherOptions > & | hyperplane | ) | const [inline] |
| bool Eigen::ParametrizedLine::isApprox | ( | const ParametrizedLine & | 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.| const VectorType& Eigen::ParametrizedLine::origin | ( | ) | const [inline] |
| VectorType& Eigen::ParametrizedLine::origin | ( | ) | [inline] |
| VectorType Eigen::ParametrizedLine::projection | ( | const VectorType & | p | ) | const [inline] |
| RealScalar Eigen::ParametrizedLine::squaredDistance | ( | const VectorType & | p | ) | const [inline] |
*this. | static ParametrizedLine Eigen::ParametrizedLine::Through | ( | const VectorType & | p0, |
| const VectorType & | p1 | ||
| ) | [inline, static] |
VectorType Eigen::ParametrizedLine::m_direction [protected] |
VectorType Eigen::ParametrizedLine::m_origin [protected] |
| Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011 |