shape_doc 0.1
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  )

Definition at line 52 of file plane.hpp.

References POLYNOMIAL.

{
    this->m_polynomial =POLYNOMIAL("x") ;
}
plane ( const char *  equation)

Definition at line 57 of file plane.hpp.

References POLYNOMIAL.

{
    this->m_polynomial =POLYNOMIAL(equation) ;
}
plane ( const plane< K > &  other)

Definition at line 62 of file plane.hpp.

                                     {
  m_polynomial = other.m_polynomial ;
}

Member Function Documentation

double a ( void  ) const [inline]

Definition at line 67 of file plane.hpp.

                   {
  return m_polynomial[1] ;
}
double b ( void  ) const [inline]

Definition at line 72 of file plane.hpp.

                   {
    return m_polynomial[2] ;
}
double c ( void  ) const [inline]

Definition at line 77 of file plane.hpp.

                   {
  return m_polynomial[3] ;
}
double d ( void  ) const [inline]

Definition at line 82 of file plane.hpp.

                   {
  return m_polynomial[0] ;
}
polynomial< double, with< MonomialTensor > > equation ( void  ) const

Definition at line 87 of file plane.hpp.

                          {
  return m_polynomial ;
}
bool operator!= ( const plane< K > &  other) const

Tests whether two planes are different.

Todo:
Check name of variables as well.

Definition at line 103 of file plane.hpp.

                                             {
  return !(m_polynomial == other.m_polynomial) ;
}
plane< K > & operator= ( const plane< K > &  other)

Definition at line 108 of file plane.hpp.

                                      {
  if(this == &other)
    return *this ;
    
  this->m_polynomial = other.equation() ;
  
  return * this ;
}
bool operator== ( const plane< K > &  other) const

Tests whether two planes are the same.

Todo:
Check name of variables as well.

Definition at line 95 of file plane.hpp.

                                             {
  return (this->m_polynomial == other.m_polynomial) ;
}
double & operator[] ( const int &  i)

Definition at line 118 of file plane.hpp.

                                 {
  switch(i) {
  case 0:
    return m_polynomial[1] ; 
    break ;
  case 1:
    return m_polynomial[2] ;
        break ;
  case 2:
    return m_polynomial[3] ;
    break ;
  case 3:
    return m_polynomial[0] ;
    break ;
  default:
    break ;
  }
  
  return *(new double(0.0)) ;
}
bool orientation ( double *  q0,
double *  q1,
double *  q2,
double *  q3 
) [inherited]

Definition at line 88 of file shape.hpp.

                                                                    {
  *q0 = this->m_q0 ;
  *q1 = this->m_q1 ;
  *q2 = this->m_q2 ;
  *q3 = this->m_q3 ;
  return true ;
}
bool position ( double *  x,
double *  y,
double *  z 
) [inherited]

Definition at line 80 of file shape.hpp.

                                                 {
  *x = this->m_x ;
  *y = this->m_y ;
  *z = this->m_z ;
  return true ;
}

Member Data Documentation

double m_q0 [protected, inherited]

Definition at line 76 of file shape.hpp.

Referenced by geometric< V >::geometric().

double m_q1 [protected, inherited]

Definition at line 76 of file shape.hpp.

Referenced by geometric< V >::geometric().

double m_q2 [protected, inherited]

Definition at line 76 of file shape.hpp.

Referenced by geometric< V >::geometric().

double m_q3 [protected, inherited]

Definition at line 76 of file shape.hpp.

Referenced by geometric< V >::geometric().

double m_x [protected, inherited]

Definition at line 75 of file shape.hpp.

Referenced by geometric< V >::geometric().

double m_y [protected, inherited]

Definition at line 75 of file shape.hpp.

Referenced by geometric< V >::geometric().

double m_z [protected, inherited]

Definition at line 75 of file shape.hpp.

Referenced by geometric< V >::geometric().


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