GeoModel - GeoModelCore
Public Member Functions | Protected Attributes | List of all members
GeoTrf::Plane3D Struct Reference

check if we can use Eigen Hyperplane for this More...

#include <GeoDefinitions.h>

Public Member Functions

 Plane3D ()
 
 Plane3D (double a1, double b1, double c1, double d1)
 
 Plane3D (const Vector3D &n, const Vector3D &p)
 
double a () const
 
double b () const
 
double c () const
 
double d () const
 
Vector3D normal () const
 

Protected Attributes

double a_
 
double b_
 
double c_
 
double d_
 

Detailed Description

check if we can use Eigen Hyperplane for this

Definition at line 28 of file GeoDefinitions.h.

Constructor & Destructor Documentation

GeoTrf::Plane3D::Plane3D ( )
inline

Default constructor - creates plane z=0.

Definition at line 35 of file GeoDefinitions.h.

36  : a_(0.), b_(0.), c_(1.), d_(0.)
37  {}
GeoTrf::Plane3D::Plane3D ( double  a1,
double  b1,
double  c1,
double  d1 
)
inline

Constructor from four numbers - creates plane a*x+b*y+c*z+d=0.

Definition at line 41 of file GeoDefinitions.h.

42  : a_(a1), b_(b1), c_(c1), d_(d1)
43  {}
GeoTrf::Plane3D::Plane3D ( const Vector3D &  n,
const Vector3D &  p 
)
inline

Constructor from normal and point.

Definition at line 47 of file GeoDefinitions.h.

48  : a_(n.x()), b_(n.y()), c_(n.z()), d_(-n.dot(p))
49  {}

Member Function Documentation

double GeoTrf::Plane3D::a ( ) const
inline

Returns the a-coefficient in the plane equation: a*x+b*y+c*z+d=0.

Definition at line 53 of file GeoDefinitions.h.

53 { return a_; }
double GeoTrf::Plane3D::b ( ) const
inline

Returns the b-coefficient in the plane equation: a*x+b*y+c*z+d=0.

Definition at line 56 of file GeoDefinitions.h.

56 { return b_; }
double GeoTrf::Plane3D::c ( ) const
inline

Returns the c-coefficient in the plane equation: a*x+b*y+c*z+d=0.

Definition at line 59 of file GeoDefinitions.h.

59 { return c_; }
double GeoTrf::Plane3D::d ( ) const
inline

Returns the free member of the plane equation: a*x+b*y+c*z+d=0.

Definition at line 62 of file GeoDefinitions.h.

62 { return d_; }
Vector3D GeoTrf::Plane3D::normal ( ) const
inline

Returns normal.

Definition at line 66 of file GeoDefinitions.h.

66 { return Vector3D(a_,b_,c_); }

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