![]() |
Eigen
3.2.9
|
A parametrized line.
This is defined in the Geometry module.
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 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 |
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 () | |
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 | pointAt (const Scalar &t) const |
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) |
|
inline |
Default constructor without initialization
Referenced by ParametrizedLine< _Scalar, _AmbientDim, _Options >::cast(), ParametrizedLine< _Scalar, _AmbientDim, _Options >::ParametrizedLine(), ParametrizedLine< _Scalar, _AmbientDim, _Options >::projection(), and ParametrizedLine< _Scalar, _AmbientDim, _Options >::Through().
|
inlineexplicit |
Constructs a dynamic-size line with _dim the dimension of the ambient space
|
inline |
Initializes a parametrized line of direction direction and origin origin.
References ParametrizedLine< _Scalar, _AmbientDim, _Options >::ParametrizedLine().
|
inlineexplicit |
Constructs a parametrized line from a 2D hyperplane
References Hyperplane< _Scalar, _AmbientDim, _Options >::normal(), and Hyperplane< _Scalar, _AmbientDim, _Options >::offset().
|
inlineexplicit |
Copy constructor with scalar type conversion
|
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
.
References ParametrizedLine< _Scalar, _AmbientDim, _Options >::ParametrizedLine().
|
inline |
|
inline |
*this
. References ParametrizedLine< _Scalar, _AmbientDim, _Options >::squaredDistance().
|
inline |
*this
and the given hyperplane
|
inline |
*this
and the given hyperplane References Hyperplane< _Scalar, _AmbientDim, _Options >::normal(), and Hyperplane< _Scalar, _AmbientDim, _Options >::offset().
|
inline |
*this
and the given hyperplane References ParametrizedLine< _Scalar, _AmbientDim, _Options >::pointAt().
Referenced by ParametrizedLine< _Scalar, _AmbientDim, _Options >::projection().
|
inline |
true
if *this
is approximately equal to other, within the precision determined by prec.
|
inline |
Referenced by ParametrizedLine< _Scalar, _AmbientDim, _Options >::intersectionPoint(), and ParametrizedLine< _Scalar, _AmbientDim, _Options >::projection().
|
inline |
*this
. References ParametrizedLine< _Scalar, _AmbientDim, _Options >::intersectionPoint(), ParametrizedLine< _Scalar, _AmbientDim, _Options >::ParametrizedLine(), and ParametrizedLine< _Scalar, _AmbientDim, _Options >::pointAt().
|
inline |
*this
. Referenced by ParametrizedLine< _Scalar, _AmbientDim, _Options >::distance().
|
inlinestatic |
Constructs a parametrized line going from p0 to p1.
References ParametrizedLine< _Scalar, _AmbientDim, _Options >::ParametrizedLine().