|
template<typename T > |
bool | operator== (const Point< T > &p1, const Point< T > &p2) |
| Compares two points on equality. More...
|
|
template<typename T > |
bool | operator!= (const Point< T > &p1, const Point< T > &p2) |
| Compares two points on inequality. More...
|
|
template<typename T > |
Point< T > | operator+ (const Point< T > &p1, const Point< T > &p2) |
| Adds two points. More...
|
|
template<typename T > |
Point< T > | operator- (const Point< T > &p1, const Point< T > &p2) |
| Subtracts two points. More...
|
|
template<typename T > |
Point< T > | operator* (const Point< T > &p1, const Point< T > &p2) |
| Multiplies two points. More...
|
|
template<typename T > |
Point< T > | operator/ (const Point< T > &p1, const Point< T > &p2) |
| Divides two points. More...
|
|
template<typename T > |
Point< T > | operator- (const Point< T > &p) |
| Returns point with coordinates with the opposite sign. More...
|
|
template<typename TP , typename TA > |
Point< TP > | operator/ (const Point< TP > &p, const TA &a) |
| Divides the point on the scalar value. More...
|
|
template<typename TP , typename TA > |
Point< TP > | operator* (const Point< TP > &p, const TA &a) |
| Multiplies the point on the scalar value. More...
|
|
template<typename TP , typename TA > |
Point< TP > | operator* (const TA &a, const Point< TP > &p) |
| Multiplies the scalar value on the point. More...
|
|
template<typename T > |
T | SquaredDistance (const Point< T > &p1, const Point< T > &p2) |
| Gets squared distance between two points. More...
|
|
template<typename T > |
double | Distance (const Point< T > &p1, const Point< T > &p2) |
| Gets distance between two points. More...
|
|
template<typename T > |
T | DotProduct (const Point< T > &p1, const Point< T > &p2) |
| Gets dot product of two points. More...
|
|
template<typename T > |
T | CrossProduct (const Point< T > &p1, const Point< T > &p2) |
| Gets cross product of two points. More...
|
|