Go to the documentation of this file.
11 #ifndef EIGEN_PARAMETRIZEDLINE_H
12 #define EIGEN_PARAMETRIZEDLINE_H
29 template <
typename _Scalar,
int _AmbientDim,
int _Options>
30 class ParametrizedLine
46 template<
int OtherOptions>
61 template <
int OtherOptions>
98 template <
int OtherOptions>
101 template <
int OtherOptions>
104 template <
int OtherOptions>
112 template<
typename NewScalarType>
121 template<
typename OtherScalarType,
int OtherOptions>
124 m_origin = other.origin().template cast<Scalar>();
125 m_direction = other.direction().template cast<Scalar>();
133 {
return m_origin.isApprox(other.m_origin, prec) &&
m_direction.isApprox(other.m_direction, prec); }
144 template <
typename _Scalar,
int _AmbientDim,
int _Options>
145 template <
int OtherOptions>
149 direction() = hyperplane.
normal().unitOrthogonal();
155 template <
typename _Scalar,
int _AmbientDim,
int _Options>
159 return origin() + (direction()*t);
164 template <
typename _Scalar,
int _AmbientDim,
int _Options>
165 template <
int OtherOptions>
168 return -(hyperplane.
offset()+hyperplane.
normal().dot(origin()))
169 / hyperplane.
normal().dot(direction());
176 template <
typename _Scalar,
int _AmbientDim,
int _Options>
177 template <
int OtherOptions>
180 return intersectionParameter(hyperplane);
185 template <
typename _Scalar,
int _AmbientDim,
int _Options>
186 template <
int OtherOptions>
190 return pointAt(intersectionParameter(hyperplane));
195 #endif // EIGEN_PARAMETRIZEDLINE_H
EIGEN_DEVICE_FUNC ParametrizedLine(const ParametrizedLine< Scalar, AmbientDimAtCompileTime, OtherOptions > &other)
const EIGEN_DEVICE_FUNC SqrtReturnType sqrt() const
EIGEN_DEVICE_FUNC VectorType projection(const VectorType &p) const
Matrix< Scalar, AmbientDimAtCompileTime, 1, Options > VectorType
static EIGEN_DEVICE_FUNC ParametrizedLine Through(const VectorType &p0, const VectorType &p1)
const EIGEN_DEVICE_FUNC Scalar & offset() const
EIGEN_DEVICE_FUNC Scalar intersectionParameter(const Hyperplane< _Scalar, _AmbientDim, OtherOptions > &hyperplane) const
const EIGEN_DEVICE_FUNC VectorType & direction() const
EIGEN_DEVICE_FUNC Index dim() const
EIGEN_DEVICE_FUNC ParametrizedLine()
EIGEN_DEVICE_FUNC RealScalar squaredDistance(const VectorType &p) const
Scalar EIGEN_BLAS_FUNC() dot(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy)
EIGEN_DEVICE_FUNC ParametrizedLine(Index _dim)
EIGEN_DEVICE_FUNC VectorType & origin()
EIGEN_DEVICE_FUNC VectorType intersectionPoint(const Hyperplane< _Scalar, _AmbientDim, OtherOptions > &hyperplane) const
EIGEN_DEVICE_FUNC VectorType pointAt(const Scalar &t) const
#define EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(TYPE, SIZE)
@ AmbientDimAtCompileTime
EIGEN_DEVICE_FUNC bool isApprox(const ParametrizedLine &other, const typename NumTraits< Scalar >::Real &prec=NumTraits< Scalar >::dummy_precision()) const
EIGEN_DEVICE_FUNC ~ParametrizedLine()
EIGEN_DEVICE_FUNC ConstNormalReturnType normal() const
EIGEN_DEVICE_FUNC Scalar intersection(const Hyperplane< _Scalar, _AmbientDim, OtherOptions > &hyperplane) const
NumTraits< Scalar >::Real RealScalar
EIGEN_DEVICE_FUNC ParametrizedLine(const VectorType &origin, const VectorType &direction)
EIGEN_DEVICE_FUNC ParametrizedLine(const ParametrizedLine< OtherScalarType, AmbientDimAtCompileTime, OtherOptions > &other)
EIGEN_DEVICE_FUNC internal::cast_return_type< ParametrizedLine, ParametrizedLine< NewScalarType, AmbientDimAtCompileTime, Options > >::type cast() const
EIGEN_DEVICE_FUNC VectorType & direction()
Holds information about the various numeric (i.e. scalar) types allowed by Eigen.
#define EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE(Scalar, Size)
EIGEN_DEVICE_FUNC RealScalar distance(const VectorType &p) const
const EIGEN_DEVICE_FUNC VectorType & origin() const
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
control_box_rst
Author(s): Christoph Rösmann
autogenerated on Wed Mar 2 2022 00:05:59