#include "ps_coord.hpp" long& CCord::x( ) { return m_x ; } long& CCord::y( ) { return m_y ; } long& CCord::z( ) { return m_z ; } const long& CCord::x( ) const { return m_x ; } const long& CCord::y( ) const { return m_y ; } const long& CCord::z( ) const { return m_z ; } CCord::CCord( long xx /* = 0 */, long yy /* = 0 */, long zz /* = 0 */) { x( ) = xx ; y( ) = yy ; z( ) = zz ; } CCord& CCord::operator +=( const CCord& c ) { x( )+=c.x( ) ; y( )+=c.y( ) ; z( )+= c.z( ) ; return *this ; } CCord& CCord::operator -=( const CCord& c ) { x( )-=c.x( ) ; y( )-=y( ) ; z( )-= c.z( ) ; return *this ; } CCord& CCord::operator+( const CCord& c ) { return *this += c ; } CCord& CCord::operator-( const CCord& c ) { return *this -= c ; } bool CCord::operator==( const CCord& c ) const { return x( ) == c.x( ) && y( ) == c.y( ) && z( ) == c.z( ) ; } bool CCord::operator <( const CCord& c ) const { return x( ) < c.x( ) && y( ) < c.y( ) && z( ) < c.z( ) ; } bool CCord::operator >( const CCord& c ) const { return x( ) > c.x( ) && y( ) > c.y( ) && z( ) > c.z( ) ; } bool CCord::operator !=( const CCord& c ) const { return ! ( *this == c ) ; }