kig
coordinate.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
| class | Coordinate |
| The Coordinate class is the basic class representing a 2D location by its x and y components. More... | |
Functions | |
| const Coordinate | operator/ (const Coordinate &a, double r) |
| QDebug & | operator<< (QDebug &s, const Coordinate &t) |
| const Coordinate | operator+ (const Coordinate &a, const Coordinate &b) |
| const Coordinate | operator- (const Coordinate &a, const Coordinate &b) |
| const Coordinate | operator * (const Coordinate &a, double r) |
| const Coordinate | operator * (double r, const Coordinate &a) |
| double | operator * (const Coordinate &a, const Coordinate &b) |
Function Documentation
| double operator * | ( | const Coordinate & | a, | |
| const Coordinate & | b | |||
| ) |
Returns the scalar product of a and b.
Definition at line 181 of file coordinate.cpp.
| const Coordinate operator * | ( | double | r, | |
| const Coordinate & | a | |||
| ) |
Definition at line 54 of file coordinate.cpp.
| const Coordinate operator * | ( | const Coordinate & | a, | |
| double | r | |||
| ) |
Returns this a, scaled by a factor of r.
Definition at line 49 of file coordinate.cpp.
| const Coordinate operator+ | ( | const Coordinate & | a, | |
| const Coordinate & | b | |||
| ) |
Returns the sum of a and b.
Definition at line 39 of file coordinate.cpp.
| const Coordinate operator- | ( | const Coordinate & | a, | |
| const Coordinate & | b | |||
| ) |
Returns the difference between a and b.
Definition at line 44 of file coordinate.cpp.
| const Coordinate operator/ | ( | const Coordinate & | a, | |
| double | r | |||
| ) |
Returns a, scaled by a factor of 1/r.
Definition at line 59 of file coordinate.cpp.
| QDebug& operator<< | ( | QDebug & | s, | |
| const Coordinate & | t | |||
| ) |
Definition at line 33 of file coordinate.cpp.
KDE 4.0 API Reference