#include <Point3D.h>
Public Member Functions | |
Point3D (T x, T y, T z) | |
Point3D () | |
virtual | ~Point3D () |
T | x () const |
T | y () const |
T | z () const |
void | x (const T &xc) |
void | y (const T &yc) |
void | z (const T &zc) |
void | set (T x, T y, T z) |
T | sqr_distance (const Point3D< T > &other) const |
double | distance (const Point3D< T > &other) const |
T | sqr_abs () const |
double | abs () const |
Point3D< T > | operator+ (const Point3D< T > &other) const |
Point3D< T > | operator- (const Point3D< T > &other) const |
Point3D< T > & | operator+= (const Point3D< T > &other) |
Point3D< T > & | operator-= (const Point3D< T > &other) |
bool | operator== (const Point3D< T > &other) const |
Protected Attributes | |
T | _x |
T | _y |
T | _z |
Friends | |
std::size_t | hash_value (Point3D< T > const &p) |
template<class U> | |
ostream & | operator<< (ostream &ss, const Point3D< U > &p) |
Definition at line 15 of file Point3D.h.
T Point3D< T >::x | ( | ) | const [inline] |
Definition at line 32 of file Point3D.h.
Referenced by CuboidGridObjectPopulation::at(), CuboidIntegerGrid3D::CuboidIntegerGrid3D(), LateralDelayCondAndSyn::generate(), PositionBased2dValueGenerator::generate(), CuboidGridObjectPopulation::getIndex(), CuboidGridObjectPopulation::getLocation(), hash_value(), CuboidGridObjectPopulation::operator()(), Point3D< int >::set(), and CuboidGridObjectPopulation::subVolume().
T Point3D< T >::y | ( | ) | const [inline] |
Definition at line 37 of file Point3D.h.
Referenced by CuboidGridObjectPopulation::at(), CuboidIntegerGrid3D::CuboidIntegerGrid3D(), LateralDelayCondAndSyn::generate(), PositionBased2dValueGenerator::generate(), CuboidGridObjectPopulation::getIndex(), CuboidGridObjectPopulation::getLocation(), hash_value(), CuboidGridObjectPopulation::operator()(), Point3D< int >::set(), and CuboidGridObjectPopulation::subVolume().
T Point3D< T >::z | ( | ) | const [inline] |
Definition at line 42 of file Point3D.h.
Referenced by CuboidGridObjectPopulation::at(), CuboidIntegerGrid3D::CuboidIntegerGrid3D(), LateralDelayCondAndSyn::generate(), CuboidGridObjectPopulation::getIndex(), CuboidGridObjectPopulation::getLocation(), hash_value(), CuboidGridObjectPopulation::operator()(), Point3D< int >::set(), and CuboidGridObjectPopulation::subVolume().
void Point3D< T >::x | ( | const T & | xc | ) | [inline] |
void Point3D< T >::y | ( | const T & | yc | ) | [inline] |
void Point3D< T >::z | ( | const T & | zc | ) | [inline] |
void Point3D< T >::set | ( | T | x, | |
T | y, | |||
T | z | |||
) | [inline] |
T Point3D< T >::sqr_abs | ( | ) | const [inline] |
Definition at line 99 of file Point3D.h.
Referenced by Point3D< int >::distance(), and Point3D< int >::sqr_distance().
std::size_t hash_value | ( | Point3D< T > const & | p | ) | [friend] |
ostream& operator<< | ( | ostream & | ss, | |
const Point3D< U > & | p | |||
) | [friend] |
Definition at line 140 of file Point3D.h.
Referenced by Point3D< int >::operator+(), Point3D< int >::operator+=(), Point3D< int >::operator-(), Point3D< int >::operator-=(), Point3D< int >::operator==(), Point3D< int >::set(), Point3D< int >::sqr_abs(), and Point3D< int >::x().
Definition at line 141 of file Point3D.h.
Referenced by Point3D< int >::operator+(), Point3D< int >::operator+=(), Point3D< int >::operator-(), Point3D< int >::operator-=(), Point3D< int >::operator==(), Point3D< int >::set(), Point3D< int >::sqr_abs(), and Point3D< int >::y().
Definition at line 142 of file Point3D.h.
Referenced by Point3D< int >::operator+(), Point3D< int >::operator+=(), Point3D< int >::operator-(), Point3D< int >::operator-=(), Point3D< int >::operator==(), Point3D< int >::set(), Point3D< int >::sqr_abs(), and Point3D< int >::z().