shape_doc 0.1
point< C, V, N > Class Template Reference

#include <point.hpp>

Inheritance diagram for point< C, V, N >:
SHAPE_OFV point< C, with_idx< V >, N >

List of all members.

Public Types

Public Member Functions


Detailed Description

template<class C, class V, int N>
class mmx::shape::point< C, V, N >

Definition at line 55 of file point.hpp.


Member Typedef Documentation

typedef C Scalar

Reimplemented in point< C, with_idx< V >, N >, and vertex< C, V, N >.

Definition at line 58 of file point.hpp.


Constructor & Destructor Documentation

point ( void  )

Reimplemented in point< C, with_idx< V >, N >.

Definition at line 91 of file point.hpp.

                : Shape()
{
  this->m_x = (Scalar)0 ;
  this->m_y = (Scalar)0 ;
  this->m_z = (Scalar)0 ;
}
point ( Scalar  x,
Scalar  y,
Scalar  z = 0 
)

Definition at line 99 of file point.hpp.

References point< C, V, N >::x(), point< C, V, N >::y(), and point< C, V, N >::z().

                                        : Shape()
{
  this->m_x = x ;
  this->m_y = y ;
  this->m_z = z ;
}
point ( const point< C, V, N > &  p)

Definition at line 106 of file point.hpp.

                              : Shape()
{
  this->m_x = other.x() ;
  this->m_y = other.y() ;
  this->m_z = other.z() ;
}

Member Function Documentation

bool operator!= ( const point< C, V, N > &  other) const
point<C,V,N>& operator= ( const point< C, V, N > &  other)
bool operator== ( const point< C, V, N > &  other) const
point< C, V, N >::Scalar & operator[] ( const int &  i)

Definition at line 136 of file point.hpp.

                                                           {
  switch(i) {
  case 0:
    return m_x ; 
    break ;
  case 1:
    return m_y ;
        break ;
  case 2:
    return m_z ;
    break ;
  default:
        break ;
  }
  
  return *(new Scalar(0)) ;
}
point< C, V, N >::Scalar operator[] ( const int &  i) const

Definition at line 155 of file point.hpp.

                                      {
  switch(i) {
  case 0:
    return m_x ; 
    break ;
  case 1:
    return m_y ;
        break ;
  case 2:
    return m_z ;
    break ;
    default:
      break ;
  }
  
  return (Scalar)0 ;
}
void setx ( Scalar  x) [inline]

Definition at line 75 of file point.hpp.

Referenced by curve_rational< C, V >::eval().

{ this->m_x = x ; }
void sety ( Scalar  y) [inline]

Definition at line 76 of file point.hpp.

Referenced by curve_rational< C, V >::eval().

{ this->m_y = y ; }
void setz ( Scalar  z) [inline]

Definition at line 77 of file point.hpp.

Referenced by curve_rational< C, V >::eval().

{ this->m_z = z ; }
typedef SHAPE_OF ( )
Scalar& x ( void  ) [inline]

Definition at line 66 of file point.hpp.

{ return m_x ; }
Scalar& y ( void  ) [inline]

Definition at line 68 of file point.hpp.

{ return m_y ; }
Scalar& z ( void  ) [inline]

Definition at line 70 of file point.hpp.

{ return m_z ; }

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