point< C, N, V > Class Template Reference
#include <point.hpp>
List of all members.
Public Types
Public Member Functions
Detailed Description
template<class C, int N, class V>
class mmx::shape::point< C, N, V >
Definition at line 53 of file point.hpp.
Member Typedef Documentation
Constructor & Destructor Documentation
Definition at line 119 of file point.hpp.
00119 : Shape()
00120 {
00121 this->m_x = x ;
00122 this->m_y = y ;
00123 this->m_z = z ;
00124 }
Definition at line 126 of file point.hpp.
00126 : Shape()
00127 {
00128 this->m_x = other.x() ;
00129 this->m_y = other.y() ;
00130 this->m_z = other.z() ;
00131 }
Member Function Documentation
point< C, N, V > cross |
( |
const point< C, N, V > & |
v |
) |
const [inline] |
Definition at line 251 of file point.hpp.
References SELF.
00252 {
00253 SELF res;
00254 res.x() = (m_y * v.z()) - (m_z * v.y());
00255 res.y() = (m_z * v.x()) - (m_x * v.z());
00256 res.z() = (m_x * v.y()) - (m_y * v.x());
00257 return res;
00258 }
bool operator!= |
( |
const point< C, N, V > & |
other |
) |
const [inline] |
Reimplemented in vertex< C, N, V >.
Definition at line 152 of file point.hpp.
00152 {
00153 return ((m_x != other.x()) || (m_y != other.y()) || (m_z != other.z())) ;
00154 }
point< C, N, V > operator* |
( |
const point< C, N, V > & |
v |
) |
const [inline] |
Definition at line 240 of file point.hpp.
References SELF.
00241 {
00242 SELF res;
00243 res.x() = m_x * v.x();
00244 res.y() = m_y * v.y();
00245 res.z() = m_z * v.z();
00246 return res;
00247 }
point< C, N, V > operator* |
( |
const Scalar & |
k |
) |
const [inline] |
Definition at line 214 of file point.hpp.
References SELF.
00215 {
00216 SELF res;
00217 res.x() = k * m_x;
00218 res.y() = k * m_y;
00219 res.z() = k * m_z;
00220 return res;
00221 }
point operator*= |
( |
const point< C, N, V > & |
v |
) |
const [inline] |
Definition at line 95 of file point.hpp.
00096 {return *this*v; };
Definition at line 93 of file point.hpp.
00094 {return *this*k; };
point< C, N, V > operator+ |
( |
const point< C, N, V > & |
v |
) |
const [inline] |
Definition at line 194 of file point.hpp.
References SELF.
00195 {
00196 SELF res;
00197 res.x() = m_x + v.x();
00198 res.y() = m_y + v.y();
00199 res.z() = m_z + v.z();
00200 return res;
00201 }
point operator+= |
( |
const point< C, N, V > & |
v |
) |
const [inline] |
Definition at line 89 of file point.hpp.
00090 {return *this+v; };
point< C, N, V > operator- |
( |
|
) |
const [inline] |
Definition at line 230 of file point.hpp.
References SELF.
00231 {
00232 SELF res;
00233 res.x() = -m_x;
00234 res.y() = -m_y;
00235 res.z() = -m_z;
00236 return res;
00237 }
point< C, N, V > operator- |
( |
const point< C, N, V > & |
v |
) |
const [inline] |
Definition at line 204 of file point.hpp.
References SELF.
00205 {
00206 SELF res;
00207 res.x() = m_x - v.x();
00208 res.y() = m_y - v.y();
00209 res.z() = m_z - v.z();
00210 return res;
00211 }
point operator-= |
( |
const point< C, N, V > & |
v |
) |
const [inline] |
Definition at line 91 of file point.hpp.
00092 {return *this-v; };
point< C, N, V > & operator= |
( |
const point< C, N, V > & |
other |
) |
[inline] |
Reimplemented in vertex< C, N, V >.
Definition at line 134 of file point.hpp.
00135 {
00136 if(this == &other)
00137 return *this ;
00138
00139 this->m_x = other.x() ;
00140 this->m_y = other.y() ;
00141 this->m_z = other.z() ;
00142
00143 return * this ;
00144 }
bool operator== |
( |
const point< C, N, V > & |
other |
) |
const [inline] |
Reimplemented in vertex< C, N, V >.
Definition at line 147 of file point.hpp.
00147 {
00148 return ((m_x == other.x()) && (m_y == other.y()) && (m_z == other.z())) ;
00149 }
point< C, N, V >::Scalar & operator[] |
( |
const int & |
i |
) |
[inline] |
Definition at line 156 of file point.hpp.
00156 {
00157 switch(i) {
00158 case 0:
00159 return m_x ;
00160 break ;
00161 case 1:
00162 return m_y ;
00163 break ;
00164 case 2:
00165 return m_z ;
00166 break ;
00167 default:
00168 break ;
00169 }
00170
00171 return *(new Scalar(0)) ;
00172 }
point< C, N, V >::Scalar operator[] |
( |
const int & |
i |
) |
const [inline] |
Definition at line 175 of file point.hpp.
00175 {
00176 switch(i) {
00177 case 0:
00178 return m_x ;
00179 break ;
00180 case 1:
00181 return m_y ;
00182 break ;
00183 case 2:
00184 return m_z ;
00185 break ;
00186 default:
00187 break ;
00188 }
00189
00190 return (Scalar)0 ;
00191 }
void setx |
( |
Scalar |
x |
) |
[inline] |
Definition at line 73 of file point.hpp.
00073 { this->m_x = x ; }
void sety |
( |
Scalar |
y |
) |
[inline] |
Definition at line 74 of file point.hpp.
00074 { this->m_y = y ; }
void setz |
( |
Scalar |
z |
) |
[inline] |
Definition at line 75 of file point.hpp.
00075 { this->m_z = z ; }
Scalar x |
( |
void |
|
) |
const [inline] |
Definition at line 63 of file point.hpp.
Referenced by bcell2d_algebraic_curve< C, V >::bcell2d_algebraic_curve(), bcell3d_algebraic_curve< C, V >::bcell3d_algebraic_curve(), cell2d_algebraic_curve< C, V >::cell2d_algebraic_curve(), bcell2d_voronoi_impl_diagram< C, V >::compute_boundary(), bcell2d_voronoi_diagram< C, V >::compute_boundary(), vertex< C, N, V >::operator!=(), point< C, N, with_idx< V > >::operator!=(), vertex< C, N, V >::operator=(), point< C, N, with_idx< V > >::operator=(), point< C, N, with_color< V > >::operator=(), vertex< C, N, V >::operator==(), point< C, N, with_idx< V > >::operator==(), point< C, N, with_color< V > >::operator==(), use< tpl3d_def >::print_as_graphic(), bcell2d_voronoi_impl_diagram< C, V >::subdivide(), bcell2d_voronoi_diagram< C, V >::subdivide(), bcell2d_list< C, V >::subdivide(), bcell2d_intersection< C, V >::subdivide(), and voronoi_site2d< C, V >::x().
Scalar y |
( |
void |
|
) |
const [inline] |
Definition at line 65 of file point.hpp.
Referenced by bcell2d_algebraic_curve< C, V >::bcell2d_algebraic_curve(), bcell3d_algebraic_curve< C, V >::bcell3d_algebraic_curve(), cell2d_algebraic_curve< C, V >::cell2d_algebraic_curve(), bcell2d_voronoi_impl_diagram< C, V >::compute_boundary(), bcell2d_voronoi_diagram< C, V >::compute_boundary(), vertex< C, N, V >::operator!=(), point< C, N, with_idx< V > >::operator!=(), vertex< C, N, V >::operator=(), point< C, N, with_idx< V > >::operator=(), point< C, N, with_color< V > >::operator=(), vertex< C, N, V >::operator==(), point< C, N, with_idx< V > >::operator==(), point< C, N, with_color< V > >::operator==(), use< tpl3d_def >::print_as_graphic(), bcell2d_voronoi_impl_diagram< C, V >::subdivide(), bcell2d_voronoi_diagram< C, V >::subdivide(), bcell2d_list< C, V >::subdivide(), bcell2d_intersection< C, V >::subdivide(), and voronoi_site2d< C, V >::y().
Scalar z |
( |
void |
|
) |
const [inline] |
Definition at line 67 of file point.hpp.
Referenced by bcell3d_algebraic_curve< C, V >::bcell3d_algebraic_curve(), vertex< C, N, V >::operator!=(), point< C, N, with_idx< V > >::operator!=(), vertex< C, N, V >::operator=(), point< C, N, with_idx< V > >::operator=(), point< C, N, with_color< V > >::operator=(), vertex< C, N, V >::operator==(), point< C, N, with_idx< V > >::operator==(), point< C, N, with_color< V > >::operator==(), use< tpl3d_def >::print_as_graphic(), and voronoi_site2d< C, V >::z().
The documentation for this class was generated from the following file: