OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions
Plane Class Reference

#include <composite3.hh>

Public Types

enum  PLANE_TYPE {
  YZ = 0x1, ZY = 0x1, XZ = 0x2, ZX = 0x2,
  XY = 0x4, YX = 0x4
}

Public Member Functions

 Plane ()
 Plane (const Vec3 &p1, const Vec3 &p2, const Vec3 &p3)
 Plane (const Vec3 &p, const Vec3 &n)
 Plane (const Line3 &l, const Vec3 &p)
 Plane (Real a, Real b, Real c, Real d)
 Plane (Real x, Real y, Real z)
Vec3 GetOrigin () const
Vec3 GetNormal () const
void SetNormal (const Vec3 &n)
Real GetP () const
void SetP (Real p)
Vec3 At (Real x, Real y) const

Detailed Description

Definition at line 52 of file composite3.hh.


Member Enumeration Documentation

enum PLANE_TYPE
Enumerator:
YZ 
ZY 
XZ 
ZX 
XY 
YX 

Definition at line 73 of file composite3.hh.


Constructor & Destructor Documentation

Plane ( )
inline

Definition at line 54 of file composite3.hh.

Plane ( const Vec3 p1,
const Vec3 p2,
const Vec3 p3 
)

initialize based on 3 points defining a plane

Plane ( const Vec3 p,
const Vec3 n 
)

initialize based on a point and a normal

Plane ( const Line3 l,
const Vec3 p 
)

initialize based on a line and point

Plane ( Real  a,
Real  b,
Real  c,
Real  d 
)

initialize a,b,c,d (ax+by+cz+d=0)

Plane ( Real  x,
Real  y,
Real  z 
)

initialize based x-,y-,z- intercepts


Member Function Documentation

Vec3 At ( Real  x,
Real  y 
) const
Vec3 GetNormal ( ) const
Vec3 GetOrigin ( ) const
inline

Definition at line 66 of file composite3.hh.

Real GetP ( ) const
void SetNormal ( const Vec3 n)
void SetP ( Real  p)
inline

Definition at line 70 of file composite3.hh.


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