123456789101112131415161718192021222324252627282930313233 |
- // -*- C++ -*-
- // Declaration of the position class, defined in pic2plot source.
- struct place;
- class position {
- public:
- double x;
- double y;
- position(double, double );
- position();
- position(const place &);
- position &operator+=(const position &);
- position &operator-=(const position &);
- position &operator*=(double);
- position &operator/=(double);
- };
- position operator-(const position &);
- position operator+(const position &, const position &);
- position operator-(const position &, const position &);
- position operator/(const position &, double);
- position operator*(const position &, double);
- // dot product
- double operator*(const position &, const position &);
- int operator==(const position &, const position &);
- int operator!=(const position &, const position &);
- double hypot(const position &a);
- typedef position distance;
|