plane< K > Class Template Reference

#include <plane.hpp>

Inheritance diagram for plane< K >:
geometric< K >

List of all members.

Public Member Functions

Protected Attributes


Detailed Description

template<class K>
class mmx::shape::plane< K >

Definition at line 29 of file plane.hpp.


Constructor & Destructor Documentation

plane ( void   )  [inline]

Definition at line 52 of file plane.hpp.

References POLYNOMIAL.

00053 {
00054     this->m_polynomial =POLYNOMIAL("x") ;
00055 }

plane ( const char *  equation  )  [inline]

Definition at line 57 of file plane.hpp.

References POLYNOMIAL.

00058 {
00059     this->m_polynomial =POLYNOMIAL(equation) ;
00060 }

plane ( const plane< K > &  other  )  [inline]

Definition at line 62 of file plane.hpp.

00062                                      {
00063   m_polynomial = other.m_polynomial ;
00064 }


Member Function Documentation

double a ( void   )  const [inline]

Definition at line 67 of file plane.hpp.

00067                    {
00068   return m_polynomial[1] ;
00069 }

double b ( void   )  const [inline]

Definition at line 72 of file plane.hpp.

00072                    {
00073     return m_polynomial[2] ;
00074 }

double c ( void   )  const [inline]

Definition at line 77 of file plane.hpp.

00077                    {
00078   return m_polynomial[3] ;
00079 }

double d ( void   )  const [inline]

Definition at line 82 of file plane.hpp.

00082                    {
00083   return m_polynomial[0] ;
00084 }

polynomial< double, with< MonomialTensor > > equation ( void   )  const [inline]

Definition at line 87 of file plane.hpp.

00087                           {
00088   return m_polynomial ;
00089 }

bool operator!= ( const plane< K > &  other  )  const [inline]

Tests whether two planes are different.

Todo:
Check name of variables as well.

Definition at line 103 of file plane.hpp.

00103                                              {
00104   return !(m_polynomial == other.m_polynomial) ;
00105 }

plane< K > & operator= ( const plane< K > &  other  )  [inline]

Definition at line 108 of file plane.hpp.

00108                                       {
00109   if(this == &other)
00110     return *this ;
00111     
00112   this->m_polynomial = other.equation() ;
00113   
00114   return * this ;
00115 }

bool operator== ( const plane< K > &  other  )  const [inline]

Tests whether two planes are the same.

Todo:
Check name of variables as well.

Definition at line 95 of file plane.hpp.

00095                                              {
00096   return (this->m_polynomial == other.m_polynomial) ;
00097 }

double & operator[] ( const int &  i  )  [inline]

Definition at line 118 of file plane.hpp.

00118                                  {
00119   switch(i) {
00120   case 0:
00121     return m_polynomial[1] ; 
00122     break ;
00123   case 1:
00124     return m_polynomial[2] ;
00125         break ;
00126   case 2:
00127     return m_polynomial[3] ;
00128     break ;
00129   case 3:
00130     return m_polynomial[0] ;
00131     break ;
00132   default:
00133     break ;
00134   }
00135   
00136   return *(new double(0.0)) ;
00137 }

bool orientation ( double *  q0,
double *  q1,
double *  q2,
double *  q3 
) [inline, inherited]

Definition at line 87 of file shape.hpp.

References geometric< K >::m_q0, geometric< K >::m_q1, geometric< K >::m_q2, and geometric< K >::m_q3.

00087                                                                     {
00088   *q0 = this->m_q0 ;
00089   *q1 = this->m_q1 ;
00090   *q2 = this->m_q2 ;
00091   *q3 = this->m_q3 ;
00092   return true ;
00093 }

bool position ( double *  x,
double *  y,
double *  z 
) [inline, inherited]

Definition at line 79 of file shape.hpp.

References geometric< K >::m_x, geometric< K >::m_y, and geometric< K >::m_z.

00079                                                  {
00080   *x = this->m_x ;
00081   *y = this->m_y ;
00082   *z = this->m_z ;
00083   return true ;
00084 }


Member Data Documentation

double m_q0 [protected, inherited]

Definition at line 75 of file shape.hpp.

Referenced by geometric< V >::geometric(), and geometric< K >::orientation().

double m_q1 [protected, inherited]

Definition at line 75 of file shape.hpp.

Referenced by geometric< V >::geometric(), and geometric< K >::orientation().

double m_q2 [protected, inherited]

Definition at line 75 of file shape.hpp.

Referenced by geometric< V >::geometric(), and geometric< K >::orientation().

double m_q3 [protected, inherited]

Definition at line 75 of file shape.hpp.

Referenced by geometric< V >::geometric(), and geometric< K >::orientation().

double m_x [protected, inherited]

Definition at line 74 of file shape.hpp.

Referenced by geometric< V >::geometric(), and geometric< K >::position().

double m_y [protected, inherited]

Definition at line 74 of file shape.hpp.

Referenced by geometric< V >::geometric(), and geometric< K >::position().

double m_z [protected, inherited]

Definition at line 74 of file shape.hpp.

Referenced by geometric< V >::geometric(), and geometric< K >::position().


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

Generated on 6 Dec 2012 for shape by  doxygen 1.6.1