OpenStructure
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 53 of file composite3.hh.

Member Enumeration Documentation

◆ PLANE_TYPE

enum PLANE_TYPE
Enumerator
YZ 
ZY 
XZ 
ZX 
XY 
YX 

Definition at line 74 of file composite3.hh.

Constructor & Destructor Documentation

◆ Plane() [1/6]

Plane ( )
inline

Definition at line 55 of file composite3.hh.

◆ Plane() [2/6]

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

initialize based on 3 points defining a plane

◆ Plane() [3/6]

Plane ( const Vec3 p,
const Vec3 n 
)

initialize based on a point and a normal

◆ Plane() [4/6]

Plane ( const Line3 l,
const Vec3 p 
)

initialize based on a line and point

◆ Plane() [5/6]

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

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

◆ Plane() [6/6]

Plane ( Real  x,
Real  y,
Real  z 
)

initialize based x-,y-,z- intercepts

Member Function Documentation

◆ At()

Vec3 At ( Real  x,
Real  y 
) const

◆ GetNormal()

Vec3 GetNormal ( ) const

◆ GetOrigin()

Vec3 GetOrigin ( ) const
inline

Definition at line 67 of file composite3.hh.

◆ GetP()

Real GetP ( ) const

◆ SetNormal()

void SetNormal ( const Vec3 n)

◆ SetP()

void SetP ( Real  p)
inline

Definition at line 71 of file composite3.hh.


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