libimgdoc2
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
imgdoc2::Plane_NormalAndDist< T > Struct Template Reference

#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.
 
distance
 The distance of the plane to the origin.
 

Detailed Description

template<typename T>
struct imgdoc2::Plane_NormalAndDist< T >

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.

Constructor & Destructor Documentation

◆ Plane_NormalAndDist()

template<typename T >
imgdoc2::Plane_NormalAndDist< T >::Plane_NormalAndDist ( const Vector3dT< T > &  n,
d 
)
inline

Constructor.

Parameters
nThe normal.
dThe distance to the origin.

Member Function Documentation

◆ FromThreePoints()

template<typename T >
static Plane_NormalAndDist< T > imgdoc2::Plane_NormalAndDist< T >::FromThreePoints ( Point3dT< T >  a,
Point3dT< T >  b,
Point3dT< T >  c 
)
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.

Parameters
aThe first point on the plane.
bThe second point on the plane.
cThe third point on the plane.
Returns
Normal-representation of the plane.

The documentation for this struct was generated from the following file: