![]() |
libimgdoc2
|
#include <types.h>
Public Member Functions | |
| Plane_NormalAndDist () | |
| Default constructor. All properties are initialized to zero. | |
| Plane_NormalAndDist (const Vector3dT< T > &n, T d) | |
Static Public Member Functions | |
| static Plane_NormalAndDist< T > | FromThreePoints (Point3dT< T > a, Point3dT< T > b, Point3dT< T > c) |
Public Attributes | |
| Vector3dT< T > | normal |
| The normal of the plane. | |
| T | distance |
| The distance of the plane to the origin. | |
Parametrization of a plane, parametrized as a normal-vector and the distance to the origin (aka "Hesse normal form"). The normal must be normalized. The equation of the plane is: dot( x, normal) = distance.
|
inline |
Constructor.
| n | The normal. |
| d | The distance to the origin. |
|
inlinestatic |
Create the normal-representation of a plane for a plane defined by three points. Precondition (not checked currently) is that the points are distinct.
| a | The first point on the plane. |
| b | The second point on the plane. |
| c | The third point on the plane. |