shape_doc 0.1
line< K > Class Template Reference

#include <line.hpp>

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

List of all members.

Public Types

Public Member Functions

Protected Attributes


Detailed Description

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

Definition at line 19 of file line.hpp.


Member Typedef Documentation

typedef point_def<K>::Point Point

Definition at line 23 of file line.hpp.

typedef point_def<K>::Scalar Scalar

Definition at line 22 of file line.hpp.


Constructor & Destructor Documentation

line ( Point origin,
Point extremity 
) [inline]

Definition at line 24 of file line.hpp.

References line< K >::extremity(), and line< K >::origin().

                                                     : Shape() {
                        m_origin = *origin;
                        m_extremity = *extremity;
                }
line ( Point  origin,
Point  extremity 
) [inline]

Definition at line 28 of file line.hpp.

References line< K >::extremity(), and line< K >::origin().

                                                   : Shape() {
                        m_origin = origin;
                        m_extremity = extremity;
                }
~line ( ) [inline]

Definition at line 32 of file line.hpp.

                       {
                }

Member Function Documentation

Point extremity ( void  ) const [inline]

Definition at line 36 of file line.hpp.

Referenced by line< K >::line(), and line< K >::setExtremity().

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

Tests whether two planes are different.

Todo:
Check name of variables as well.

Definition at line 60 of file line.hpp.

                                           {
  return !(m_origin == other.m_origin && m_extremity == other.m_extremity);
}
line< K > & operator= ( const line< K > &  other)

Definition at line 65 of file line.hpp.

                                    {
  if(this == &other)
    return *this ;
    
  this->m_origin = other.origin() ;
  this->m_extremity = other.extremity() ;
  return *this ;
}
bool operator== ( const line< K > &  other) const

Definition at line 52 of file line.hpp.

                                           {
  return (m_origin == other.m_origin && m_extremity == other.m_extremity) ;
}
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 ;
}
Point origin ( void  ) const [inline]

Definition at line 35 of file line.hpp.

Referenced by line< K >::line(), and line< K >::setOrigin().

{ return m_origin ; }
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 ;
}
void setExtremity ( Point  extremity) [inline]

Definition at line 39 of file line.hpp.

References line< K >::extremity().

{ this->m_extremity = extremity ; }
void setOrigin ( Point  origin) [inline]

Definition at line 38 of file line.hpp.

References line< K >::origin().

{ this->m_origin = origin ; }

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: