#include <ClosestPair2DBase.hh>
Public Member Functions | |
| Coord2D () | |
| Coord2D (double a, double b) | |
| Coord2D | operator- (const Coord2D &other) const |
| return the vector difference between two coordinates | |
| Coord2D | operator+ (const Coord2D &other) const |
| return the vector sum between two coordinates | |
| Coord2D | operator * (double factor) const |
| return the product of the coordinate with the factor | |
| Coord2D | operator/ (double divisor) const |
| division of each component of coordinate | |
| double | distance2 (const Coord2D &b) const |
| return the squared distance between two coordinates | |
Public Attributes | |
| double | x |
| double | y |
Friends | |
| Coord2D | operator * (double factor, const Coord2D &coord) |
| double | distance2 (const Coord2D &a, const Coord2D &b) |
| return the squared distance between two coordinates | |
Definition at line 42 of file ClosestPair2DBase.hh.
|
|
Definition at line 46 of file ClosestPair2DBase.hh. 00046 {};
|
|
||||||||||||
|
Definition at line 48 of file ClosestPair2DBase.hh.
|
|
|
return the squared distance between two coordinates
Definition at line 74 of file ClosestPair2DBase.hh.
|
|
|
return the product of the coordinate with the factor
Definition at line 59 of file ClosestPair2DBase.hh.
|
|
|
return the vector sum between two coordinates
Definition at line 55 of file ClosestPair2DBase.hh.
|
|
|
return the vector difference between two coordinates
Definition at line 51 of file ClosestPair2DBase.hh.
|
|
|
division of each component of coordinate
Definition at line 65 of file ClosestPair2DBase.hh.
|
|
||||||||||||
|
return the squared distance between two coordinates
Definition at line 69 of file ClosestPair2DBase.hh. 00069 {
00070 double dx = a.x - b.x, dy = a.y-b.y;
00071 return dx*dx+dy*dy;
00072 };
|
|
||||||||||||
|
Definition at line 60 of file ClosestPair2DBase.hh. 00060 {
00061 return Coord2D(factor*coord.x,factor*coord.y);
00062 }
|
|
|
Definition at line 44 of file ClosestPair2DBase.hh. Referenced by fastjet::ClosestPair2D::_initialize(), fastjet::ClosestPair2D::_point2shuffle(), distance2(), operator+(), and operator-(). |
|
|
Definition at line 44 of file ClosestPair2DBase.hh. Referenced by fastjet::ClosestPair2D::_initialize(), fastjet::ClosestPair2D::_point2shuffle(), distance2(), fastjet::Private::make_mirror(), operator+(), and operator-(). |
1.4.2