fastjet 2.4.5
Public Member Functions | Public Attributes
fastjet::Point Class Reference

class to handle a 2d point More...

#include <Voronoi.hh>

List of all members.

Public Member Functions

 Point ()
 defailt ctor
 Point (double _x, double _y)
 ctor with initialisation
Point operator+ (const Point &p) const
 addition
Point operator- (const Point &p) const
 subtraction
Point operator* (const double t) const
 scalar multiplication

Public Attributes

double x
 vector coordinates
double y

Detailed Description

class to handle a 2d point

Definition at line 79 of file Voronoi.hh.


Constructor & Destructor Documentation

fastjet::Point::Point ( ) [inline]

defailt ctor

Definition at line 82 of file Voronoi.hh.

: x(0.0), y(0.0) {}
fastjet::Point::Point ( double  _x,
double  _y 
) [inline]

ctor with initialisation

Definition at line 85 of file Voronoi.hh.

: x(_x), y(_y) {}

Member Function Documentation

Point fastjet::Point::operator* ( const double  t) const [inline]

scalar multiplication

Definition at line 98 of file Voronoi.hh.

References fastjet::d0::inline_maths::y().

                                                {
    return Point(x*t, y*t);
  }
Point fastjet::Point::operator+ ( const Point p) const [inline]

addition

Definition at line 88 of file Voronoi.hh.

References x, y, and fastjet::d0::inline_maths::y().

                                                {
    return Point(x+p.x, y+p.y);
  }
Point fastjet::Point::operator- ( const Point p) const [inline]

subtraction

Definition at line 93 of file Voronoi.hh.

References x, y, and fastjet::d0::inline_maths::y().

                                                {
    return Point(x-p.x, y-p.y);
  }

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines