A parametrized line. More...
#include <ParametrizedLine.h>
Public Types | |
enum | { AmbientDimAtCompileTime = _AmbientDim } |
enum | { AmbientDimAtCompileTime = _AmbientDim, Options = _Options } |
typedef DenseIndex | Index |
typedef NumTraits< Scalar >::Real | RealScalar |
typedef NumTraits< Scalar >::Real | RealScalar |
typedef _Scalar | Scalar |
typedef _Scalar | Scalar |
typedef Matrix< Scalar, AmbientDimAtCompileTime, 1 > | VectorType |
typedef Matrix< Scalar, AmbientDimAtCompileTime, 1, Options > | VectorType |
Public Member Functions | |
template<typename NewScalarType > | |
internal::cast_return_type < ParametrizedLine, ParametrizedLine < NewScalarType, AmbientDimAtCompileTime > >::type | cast () const |
template<typename NewScalarType > | |
internal::cast_return_type < ParametrizedLine, ParametrizedLine < NewScalarType, AmbientDimAtCompileTime, Options > >::type | cast () const |
int | dim () const |
Index | dim () const |
const VectorType & | direction () const |
VectorType & | direction () |
const VectorType & | direction () const |
VectorType & | direction () |
RealScalar | distance (const VectorType &p) const |
RealScalar | distance (const VectorType &p) const |
Scalar | intersection (const Hyperplane< _Scalar, _AmbientDim > &hyperplane) |
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, typename NumTraits< Scalar >::Real prec=precision< Scalar >()) const |
bool | isApprox (const ParametrizedLine &other, typename NumTraits< Scalar >::Real prec=NumTraits< Scalar >::dummy_precision()) const |
const VectorType & | origin () const |
VectorType & | origin () |
const VectorType & | origin () const |
VectorType & | origin () |
ParametrizedLine () | |
ParametrizedLine (int _dim) | |
ParametrizedLine () | |
ParametrizedLine (const VectorType &origin, const VectorType &direction) | |
template<int OtherOptions> | |
ParametrizedLine (const ParametrizedLine< Scalar, AmbientDimAtCompileTime, OtherOptions > &other) | |
ParametrizedLine (const Hyperplane< _Scalar, _AmbientDim > &hyperplane) | |
ParametrizedLine (Index _dim) | |
ParametrizedLine (const VectorType &origin, const VectorType &direction) | |
template<int OtherOptions> | |
ParametrizedLine (const Hyperplane< _Scalar, _AmbientDim, OtherOptions > &hyperplane) | |
template<typename OtherScalarType > | |
ParametrizedLine (const ParametrizedLine< OtherScalarType, AmbientDimAtCompileTime > &other) | |
template<typename OtherScalarType , int OtherOptions> | |
ParametrizedLine (const ParametrizedLine< OtherScalarType, AmbientDimAtCompileTime, OtherOptions > &other) | |
VectorType | pointAt (const Scalar &t) const |
VectorType | projection (const VectorType &p) const |
VectorType | projection (const VectorType &p) const |
RealScalar | squaredDistance (const VectorType &p) const |
RealScalar | squaredDistance (const VectorType &p) const |
~ParametrizedLine () | |
~ParametrizedLine () | |
Static Public Member Functions | |
static ParametrizedLine | Through (const VectorType &p0, const VectorType &p1) |
static ParametrizedLine | Through (const VectorType &p0, const VectorType &p1) |
Protected Attributes | |
VectorType | m_direction |
VectorType | m_origin |
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. |
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. |
Definition at line 29 of file Eigen2Support/Geometry/ParametrizedLine.h.
typedef DenseIndex Eigen::ParametrizedLine< _Scalar, _AmbientDim >::Index |
Definition at line 40 of file Geometry/ParametrizedLine.h.
typedef NumTraits<Scalar>::Real Eigen::ParametrizedLine< _Scalar, _AmbientDim >::RealScalar |
Definition at line 35 of file Eigen2Support/Geometry/ParametrizedLine.h.
typedef NumTraits<Scalar>::Real Eigen::ParametrizedLine< _Scalar, _AmbientDim >::RealScalar |
Definition at line 39 of file Geometry/ParametrizedLine.h.
typedef _Scalar Eigen::ParametrizedLine< _Scalar, _AmbientDim >::Scalar |
Definition at line 34 of file Eigen2Support/Geometry/ParametrizedLine.h.
typedef _Scalar Eigen::ParametrizedLine< _Scalar, _AmbientDim >::Scalar |
Definition at line 38 of file Geometry/ParametrizedLine.h.
typedef Matrix<Scalar,AmbientDimAtCompileTime,1> Eigen::ParametrizedLine< _Scalar, _AmbientDim >::VectorType |
Definition at line 36 of file Eigen2Support/Geometry/ParametrizedLine.h.
typedef Matrix<Scalar,AmbientDimAtCompileTime,1,Options> Eigen::ParametrizedLine< _Scalar, _AmbientDim >::VectorType |
Definition at line 41 of file Geometry/ParametrizedLine.h.
anonymous enum |
Definition at line 33 of file Eigen2Support/Geometry/ParametrizedLine.h.
anonymous enum |
Definition at line 34 of file Geometry/ParametrizedLine.h.
Eigen::ParametrizedLine< _Scalar, _AmbientDim >::ParametrizedLine | ( | ) | [inline] |
Default constructor without initialization
Definition at line 39 of file Eigen2Support/Geometry/ParametrizedLine.h.
Eigen::ParametrizedLine< _Scalar, _AmbientDim >::ParametrizedLine | ( | int | _dim | ) | [inline, explicit] |
Constructs a dynamic-size line with _dim the dimension of the ambient space
Definition at line 43 of file Eigen2Support/Geometry/ParametrizedLine.h.
Eigen::ParametrizedLine< _Scalar, _AmbientDim >::ParametrizedLine | ( | const VectorType & | origin, |
const VectorType & | direction | ||
) | [inline] |
Initializes a parametrized line of direction direction and origin origin.
Definition at line 48 of file Eigen2Support/Geometry/ParametrizedLine.h.
Eigen::ParametrizedLine< _Scalar, _AmbientDim >::ParametrizedLine | ( | const Hyperplane< _Scalar, _AmbientDim > & | hyperplane | ) | [inline, explicit] |
Constructs a parametrized line from a 2D hyperplane
Definition at line 125 of file Eigen2Support/Geometry/ParametrizedLine.h.
Eigen::ParametrizedLine< _Scalar, _AmbientDim >::~ParametrizedLine | ( | ) | [inline] |
Definition at line 57 of file Eigen2Support/Geometry/ParametrizedLine.h.
Eigen::ParametrizedLine< _Scalar, _AmbientDim >::ParametrizedLine | ( | const ParametrizedLine< OtherScalarType, AmbientDimAtCompileTime > & | other | ) | [inline, explicit] |
Copy constructor with scalar type conversion
Definition at line 102 of file Eigen2Support/Geometry/ParametrizedLine.h.
Eigen::ParametrizedLine< _Scalar, _AmbientDim >::ParametrizedLine | ( | ) | [inline] |
Default constructor without initialization
Definition at line 44 of file Geometry/ParametrizedLine.h.
Eigen::ParametrizedLine< _Scalar, _AmbientDim >::ParametrizedLine | ( | const ParametrizedLine< Scalar, AmbientDimAtCompileTime, OtherOptions > & | other | ) | [inline] |
Definition at line 47 of file Geometry/ParametrizedLine.h.
Eigen::ParametrizedLine< _Scalar, _AmbientDim >::ParametrizedLine | ( | Index | _dim | ) | [inline, explicit] |
Constructs a dynamic-size line with _dim the dimension of the ambient space
Definition at line 53 of file Geometry/ParametrizedLine.h.
Eigen::ParametrizedLine< _Scalar, _AmbientDim >::ParametrizedLine | ( | const VectorType & | origin, |
const VectorType & | direction | ||
) | [inline] |
Initializes a parametrized line of direction direction and origin origin.
Definition at line 58 of file Geometry/ParametrizedLine.h.
Eigen::ParametrizedLine< _Scalar, _AmbientDim, _Options >::ParametrizedLine | ( | const Hyperplane< _Scalar, _AmbientDim, OtherOptions > & | hyperplane | ) | [inline, explicit] |
Constructs a parametrized line from a 2D hyperplane
Definition at line 146 of file Geometry/ParametrizedLine.h.
Eigen::ParametrizedLine< _Scalar, _AmbientDim >::~ParametrizedLine | ( | ) | [inline] |
Definition at line 68 of file Geometry/ParametrizedLine.h.
Eigen::ParametrizedLine< _Scalar, _AmbientDim >::ParametrizedLine | ( | const ParametrizedLine< OtherScalarType, AmbientDimAtCompileTime, OtherOptions > & | other | ) | [inline, explicit] |
Copy constructor with scalar type conversion
Definition at line 122 of file Geometry/ParametrizedLine.h.
internal::cast_return_type<ParametrizedLine, ParametrizedLine<NewScalarType,AmbientDimAtCompileTime> >::type Eigen::ParametrizedLine< _Scalar, _AmbientDim >::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
.
Definition at line 94 of file Eigen2Support/Geometry/ParametrizedLine.h.
internal::cast_return_type<ParametrizedLine, ParametrizedLine<NewScalarType,AmbientDimAtCompileTime,Options> >::type Eigen::ParametrizedLine< _Scalar, _AmbientDim >::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
.
Definition at line 114 of file Geometry/ParametrizedLine.h.
int Eigen::ParametrizedLine< _Scalar, _AmbientDim >::dim | ( | ) | const [inline] |
Definition at line 60 of file Eigen2Support/Geometry/ParametrizedLine.h.
Index Eigen::ParametrizedLine< _Scalar, _AmbientDim >::dim | ( | ) | const [inline] |
Definition at line 71 of file Geometry/ParametrizedLine.h.
const VectorType& Eigen::ParametrizedLine< _Scalar, _AmbientDim >::direction | ( | ) | const [inline] |
Definition at line 65 of file Eigen2Support/Geometry/ParametrizedLine.h.
VectorType& Eigen::ParametrizedLine< _Scalar, _AmbientDim >::direction | ( | ) | [inline] |
Definition at line 66 of file Eigen2Support/Geometry/ParametrizedLine.h.
const VectorType& Eigen::ParametrizedLine< _Scalar, _AmbientDim >::direction | ( | ) | const [inline] |
Definition at line 76 of file Geometry/ParametrizedLine.h.
VectorType& Eigen::ParametrizedLine< _Scalar, _AmbientDim >::direction | ( | ) | [inline] |
Definition at line 77 of file Geometry/ParametrizedLine.h.
RealScalar Eigen::ParametrizedLine< _Scalar, _AmbientDim >::distance | ( | const VectorType & | p | ) | const [inline] |
*this
. Definition at line 79 of file Eigen2Support/Geometry/ParametrizedLine.h.
RealScalar Eigen::ParametrizedLine< _Scalar, _AmbientDim >::distance | ( | const VectorType & | p | ) | const [inline] |
*this
. Definition at line 90 of file Geometry/ParametrizedLine.h.
_Scalar Eigen::ParametrizedLine< _Scalar, _AmbientDim >::intersection | ( | const Hyperplane< _Scalar, _AmbientDim > & | hyperplane | ) | [inline] |
*this
and the given hyperplane Definition at line 135 of file Eigen2Support/Geometry/ParametrizedLine.h.
_Scalar Eigen::ParametrizedLine< _Scalar, _AmbientDim, _Options >::intersection | ( | const Hyperplane< _Scalar, _AmbientDim, OtherOptions > & | hyperplane | ) | const [inline] |
*this
and the given hyperplane Definition at line 178 of file Geometry/ParametrizedLine.h.
_Scalar Eigen::ParametrizedLine< _Scalar, _AmbientDim, _Options >::intersectionParameter | ( | const Hyperplane< _Scalar, _AmbientDim, OtherOptions > & | hyperplane | ) | const [inline] |
*this
and the given hyperplane Definition at line 166 of file Geometry/ParametrizedLine.h.
ParametrizedLine< _Scalar, _AmbientDim, _Options >::VectorType Eigen::ParametrizedLine< _Scalar, _AmbientDim, _Options >::intersectionPoint | ( | const Hyperplane< _Scalar, _AmbientDim, OtherOptions > & | hyperplane | ) | const [inline] |
*this
and the given hyperplane Definition at line 188 of file Geometry/ParametrizedLine.h.
bool Eigen::ParametrizedLine< _Scalar, _AmbientDim >::isApprox | ( | const ParametrizedLine< _Scalar, _AmbientDim > & | other, |
typename NumTraits< Scalar >::Real | prec = precision<Scalar>() |
||
) | const [inline] |
true
if *this
is approximately equal to other, within the precision determined by prec.Definition at line 112 of file Eigen2Support/Geometry/ParametrizedLine.h.
bool Eigen::ParametrizedLine< _Scalar, _AmbientDim >::isApprox | ( | const ParametrizedLine< _Scalar, _AmbientDim > & | 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.Definition at line 132 of file Geometry/ParametrizedLine.h.
const VectorType& Eigen::ParametrizedLine< _Scalar, _AmbientDim >::origin | ( | ) | const [inline] |
Definition at line 62 of file Eigen2Support/Geometry/ParametrizedLine.h.
VectorType& Eigen::ParametrizedLine< _Scalar, _AmbientDim >::origin | ( | ) | [inline] |
Definition at line 63 of file Eigen2Support/Geometry/ParametrizedLine.h.
const VectorType& Eigen::ParametrizedLine< _Scalar, _AmbientDim >::origin | ( | ) | const [inline] |
Definition at line 73 of file Geometry/ParametrizedLine.h.
VectorType& Eigen::ParametrizedLine< _Scalar, _AmbientDim >::origin | ( | ) | [inline] |
Definition at line 74 of file Geometry/ParametrizedLine.h.
ParametrizedLine< _Scalar, _AmbientDim, _Options >::VectorType Eigen::ParametrizedLine< _Scalar, _AmbientDim, _Options >::pointAt | ( | const Scalar & | t | ) | const [inline] |
Definition at line 157 of file Geometry/ParametrizedLine.h.
VectorType Eigen::ParametrizedLine< _Scalar, _AmbientDim >::projection | ( | const VectorType & | p | ) | const [inline] |
*this
. Definition at line 82 of file Eigen2Support/Geometry/ParametrizedLine.h.
VectorType Eigen::ParametrizedLine< _Scalar, _AmbientDim >::projection | ( | const VectorType & | p | ) | const [inline] |
*this
. Definition at line 93 of file Geometry/ParametrizedLine.h.
RealScalar Eigen::ParametrizedLine< _Scalar, _AmbientDim >::squaredDistance | ( | const VectorType & | p | ) | const [inline] |
*this
. Definition at line 71 of file Eigen2Support/Geometry/ParametrizedLine.h.
RealScalar Eigen::ParametrizedLine< _Scalar, _AmbientDim >::squaredDistance | ( | const VectorType & | p | ) | const [inline] |
*this
. Definition at line 82 of file Geometry/ParametrizedLine.h.
static ParametrizedLine Eigen::ParametrizedLine< _Scalar, _AmbientDim >::Through | ( | const VectorType & | p0, |
const VectorType & | p1 | ||
) | [inline, static] |
Constructs a parametrized line going from p0 to p1.
Definition at line 54 of file Eigen2Support/Geometry/ParametrizedLine.h.
static ParametrizedLine Eigen::ParametrizedLine< _Scalar, _AmbientDim >::Through | ( | const VectorType & | p0, |
const VectorType & | p1 | ||
) | [inline, static] |
Constructs a parametrized line going from p0 to p1.
Definition at line 65 of file Geometry/ParametrizedLine.h.
VectorType Eigen::ParametrizedLine< _Scalar, _AmbientDim >::m_direction [protected] |
Definition at line 117 of file Eigen2Support/Geometry/ParametrizedLine.h.
VectorType Eigen::ParametrizedLine< _Scalar, _AmbientDim >::m_origin [protected] |
Definition at line 117 of file Eigen2Support/Geometry/ParametrizedLine.h.