nux-1.16.0
|
00001 #ifndef POINT2D_INL_H 00002 #define POINT2D_INL_H 00003 00004 namespace nux 00005 { 00006 00007 template<typename T> 00008 Point2D<T>::Point2D() 00009 : x(0), y(0) 00010 { 00011 } 00012 00013 template<typename T> 00014 Point2D<T>::Point2D(T const& X, T const& Y) 00015 : x(X), y(Y) 00016 { 00017 } 00018 00019 template<typename T> 00020 bool operator ==(const Point2D<T>& lhs, const Point2D<T>& rhs) 00021 { 00022 return (lhs.x == rhs.x) && (lhs.y == rhs.y); 00023 } 00024 00025 template<typename T> 00026 bool operator !=(const Point2D<T>& lhs, const Point2D<T>& rhs) 00027 { 00028 return !(lhs == rhs); 00029 } 00030 00031 } 00032 00033 00034 #endif