|
enum | { AmbientDimAtCompileTime = _AmbientDim,
Options = _Options
} |
|
typedef _Scalar | Scalar |
|
typedef NumTraits< Scalar >::Real | RealScalar |
|
typedef Eigen::Index | Index |
|
typedef Matrix< Scalar, AmbientDimAtCompileTime, 1 > | VectorType |
|
typedef Matrix< Scalar, Index(AmbientDimAtCompileTime)==Dynamic ? Dynamic :Index(AmbientDimAtCompileTime)+1, 1, Options > | Coefficients |
|
typedef Block< Coefficients, AmbientDimAtCompileTime, 1 > | NormalReturnType |
|
typedef const Block< const Coefficients, AmbientDimAtCompileTime, 1 > | ConstNormalReturnType |
|
|
EIGEN_DEVICE_FUNC | Hyperplane () |
|
template<int OtherOptions> |
EIGEN_DEVICE_FUNC | Hyperplane (const Hyperplane< Scalar, AmbientDimAtCompileTime, OtherOptions > &other) |
|
EIGEN_DEVICE_FUNC | Hyperplane (Index _dim) |
|
EIGEN_DEVICE_FUNC | Hyperplane (const VectorType &n, const VectorType &e) |
|
EIGEN_DEVICE_FUNC | Hyperplane (const VectorType &n, const Scalar &d) |
|
EIGEN_DEVICE_FUNC | Hyperplane (const ParametrizedLine< Scalar, AmbientDimAtCompileTime > ¶metrized) |
|
EIGEN_DEVICE_FUNC Index | dim () const |
|
EIGEN_DEVICE_FUNC void | normalize (void) |
|
EIGEN_DEVICE_FUNC Scalar | signedDistance (const VectorType &p) const |
|
EIGEN_DEVICE_FUNC Scalar | absDistance (const VectorType &p) const |
|
EIGEN_DEVICE_FUNC VectorType | projection (const VectorType &p) const |
|
EIGEN_DEVICE_FUNC ConstNormalReturnType | normal () const |
|
EIGEN_DEVICE_FUNC NormalReturnType | normal () |
|
EIGEN_DEVICE_FUNC const Scalar & | offset () const |
|
EIGEN_DEVICE_FUNC Scalar & | offset () |
|
EIGEN_DEVICE_FUNC const Coefficients & | coeffs () const |
|
EIGEN_DEVICE_FUNC Coefficients & | coeffs () |
|
EIGEN_DEVICE_FUNC VectorType | intersection (const Hyperplane &other) const |
|
template<typename XprType > |
EIGEN_DEVICE_FUNC Hyperplane & | transform (const MatrixBase< XprType > &mat, TransformTraits traits=Affine) |
|
template<int TrOptions> |
EIGEN_DEVICE_FUNC Hyperplane & | transform (const Transform< Scalar, AmbientDimAtCompileTime, Affine, TrOptions > &t, TransformTraits traits=Affine) |
|
template<typename NewScalarType > |
EIGEN_DEVICE_FUNC internal::cast_return_type< Hyperplane, Hyperplane< NewScalarType, AmbientDimAtCompileTime, Options > >::type | cast () const |
|
template<typename OtherScalarType , int OtherOptions> |
EIGEN_DEVICE_FUNC | Hyperplane (const Hyperplane< OtherScalarType, AmbientDimAtCompileTime, OtherOptions > &other) |
|
template<int OtherOptions> |
EIGEN_DEVICE_FUNC bool | isApprox (const Hyperplane< Scalar, AmbientDimAtCompileTime, OtherOptions > &other, const typename NumTraits< Scalar >::Real &prec=NumTraits< Scalar >::dummy_precision()) const |
|
template<typename _Scalar, int _AmbientDim, int _Options>
class Eigen::Hyperplane< _Scalar, _AmbientDim, _Options >
A hyperplane.
\geometry_module
A hyperplane is an affine subspace of dimension n-1 in a space of dimension n. For example, a hyperplane in a plane is a line; a hyperplane in 3-space is a plane.
- Template Parameters
-
_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. Notice that the dimension of the hyperplane is _AmbientDim-1. |
This class represents an hyperplane as the zero set of the implicit equation
where
is a unit normal vector of the plane (linear part) and
is the distance (offset) to the origin.