template<typename Scalar_, int AmbientDim_, int Options_>
class Eigen::Hyperplane< Scalar_, AmbientDim_, Options_ >
A hyperplane.
This is defined in the Geometry module.
#include <Eigen/Geometry>
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 \( n \cdot x + d = 0 \) where \( n \) is a unit normal vector of the plane (linear part) and \( d \) is the distance (offset) to the origin.
|
| Scalar | absDistance (const VectorType &p) const |
| |
| template<typename NewScalarType> |
| internal::cast_return_type< Hyperplane, Hyperplane< NewScalarType, AmbientDimAtCompileTime, Options > >::type | cast () const |
| |
| Coefficients & | coeffs () |
| |
| const Coefficients & | coeffs () const |
| |
| Index | dim () const |
| |
| | Hyperplane () |
| |
| template<typename OtherScalarType, int OtherOptions> |
| | Hyperplane (const Hyperplane< OtherScalarType, AmbientDimAtCompileTime, OtherOptions > &other) |
| |
| | Hyperplane (const ParametrizedLine< Scalar, AmbientDimAtCompileTime > ¶metrized) |
| |
| | Hyperplane (const VectorType &n, const Scalar &d) |
| |
| | Hyperplane (const VectorType &n, const VectorType &e) |
| |
| | Hyperplane (Index _dim) |
| |
| VectorType | intersection (const Hyperplane &other) const |
| |
| template<int OtherOptions> |
| bool | isApprox (const Hyperplane< Scalar, AmbientDimAtCompileTime, OtherOptions > &other, const typename NumTraits< Scalar >::Real &prec=NumTraits< Scalar >::dummy_precision()) const |
| |
| NormalReturnType | normal () |
| |
| ConstNormalReturnType | normal () const |
| |
| void | normalize (void) |
| |
| Scalar & | offset () |
| |
| const Scalar & | offset () const |
| |
| VectorType | projection (const VectorType &p) const |
| |
| Scalar | signedDistance (const VectorType &p) const |
| |
| template<typename XprType> |
| Hyperplane & | transform (const MatrixBase< XprType > &mat, TransformTraits traits=Affine) |
| |
| template<int TrOptions> |
| Hyperplane & | transform (const Transform< Scalar, AmbientDimAtCompileTime, Affine, TrOptions > &t, TransformTraits traits=Affine) |
| |