|
| Plane2D () |
| Create a plane in 2D space with the normal pointing along the positive Y axis with offset = 0. More...
|
|
| Plane2D (const VectorND< T, 2 > &planeNormal, T planeOffset) |
| Create a plane in 2D space with the specified normal and offset from the origin. More...
|
|
| Plane2D (const VectorND< T, 2 > &p1, const VectorND< T, 2 > &p2) |
| Create a plane in 2D space from two points in that plane. More...
|
|
T | getDistanceTo (const VectorND< T, 2 > &point) const |
| Get the perpendicular distance from the specified point to the plane. More...
|
|
T | getSignedDistanceTo (const VectorND< T, 2 > &point) const |
| Get the perpendicular distance from the specified point to the plane. More...
|
|
VectorND< T, 2 > | getProjection (const VectorND< T, 2 > &point) const |
| Return the projection of the given point onto the plane. More...
|
|
VectorND< T, 2 > | getProjectionNormalized (const VectorND< T, 2 > &point) const |
| Return the projection of the given point onto the plane. More...
|
|
VectorND< T, 2 > | getReflection (const VectorND< T, 2 > &point) const |
| Get the reflection of a point over the plane. More...
|
|
VectorND< T, 2 > | getReflectionNormalized (const VectorND< T, 2 > &point) const |
| Get the reflection of a point over the plane. More...
|
|
Plane2D | normalize () const |
| Normalize the plane's normal vector and correct the offset to match. More...
|
|
Plane2D | operator- () const |
| Return the plane with the opposite normal vector and offset. More...
|
|
template<typename T>
class om::math::Plane2D< T >
A class that represents a plane in 2D space.
It uses the normal and offset plane representation as it is the most universally useful in computational mathematics, especially relating to graphics and geometry.