Atmel Software Framework

math::plane Class Reference

3-dimensional plane class declaration

#include <plane.h>

Public Types

typedef math::vector3d vector
 

Public Member Functions

Class construction and destruction
 plane (scalar a=1, scalar b=0, scalar c=0, scalar d=0)
 
 plane (const vector &normal, scalar d=0)
 
 plane (const vector &p1, const vector &p2, const vector &p3)
 
Class public methods
const vectornormal () const
 
const scalarshift () const
 
const scalar distanceToPlane (const vector &p) const
 
const bool pointInPlane (const vector &p) const
 

math::plane::plane ( scalar  a = 1,
scalar  b = 0,
scalar  c = 0,
scalar  d = 0 
)
inlineexplicit
math::plane::plane ( const vector normal,
scalar  d = 0 
)
inline
math::plane::plane ( const vector p1,
const vector p2,
const vector p3 
)
inline

const scalar math::plane::distanceToPlane ( const vector p) const
inline
const vector& math::plane::normal ( ) const
inline
const bool math::plane::pointInPlane ( const vector p) const
inline

References distanceToPlane().

const scalar& math::plane::shift ( ) const
inline