#include <MRPlane3.h>
Public Member Functions | |
constexpr | Plane3 () noexcept=default |
constexpr | Plane3 (const Vector3< T > &n, T d) noexcept |
template<typename U > | |
constexpr | Plane3 (const Plane3< U > &p) noexcept |
T | distance (const Vector3< T > &x) const |
returns distance from given point to this plane (if n is a unit vector) | |
Plane3 | operator- () const |
returns same plane represented with flipped direction of n-vector | |
const Plane3 & | operator+ () const |
returns same representation | |
Plane3 | normalized () const |
returns same plane represented with unit n-vector | |
Vector3< T > | project (const Vector3< T > &p) const |
finds the closest point on plane | |
Static Public Member Functions | |
static constexpr Plane3 | fromDirAndPt (const Vector3< T > &n, const Vector3< T > &p) |
Public Attributes | |
Vector3< T > | n |
T | d = 0 |
Related Symbols | |
(Note that these are not member symbols.) | |
template<typename T > | |
Plane3< T > | invTransformed (const Plane3< T > &pl, const AffineXf3< T > &ixf) |
template<typename T > | |
Plane3< T > | transformed (const Plane3< T > &plane, const AffineXf3< T > &xf) |
3-dimensional plane: dot(n,x) - d = 0
|
constexprdefaultnoexcept |
|
inlineconstexprnoexcept |
|
inlineexplicitconstexprnoexcept |
|
inlinenodiscard |
returns distance from given point to this plane (if n is a unit vector)
|
inlinestaticnodiscardconstexpr |
|
inlinenodiscard |
returns same plane represented with unit n-vector
|
inlinenodiscard |
returns same representation
|
inlinenodiscard |
returns same plane represented with flipped direction of n-vector
|
inlinenodiscard |
finds the closest point on plane
|
related |
given plane: pl(x) = 0, and inverse transformation: y=ixf^-1(x); returns the same plane in y reference frame: pl'(y) = 0; if given transformation is not rigid, then it is a good idea to normalize returned plane
|
related |
given plane: pl(x) = 0, and transformation: y=xf(x); returns the same plane in y reference frame: pl'(y) = 0; if given transformation is not rigid, then it is a good idea to normalize returned plane
T MR::Plane3< T >::d = 0 |
Vector3<T> MR::Plane3< T >::n |