![]() |
Vault
4.1
|
VPointT defines a point with x and y coordinates. More...
#include <vgeometry.h>
Public Member Functions | |
| VPointT (T x, T y) | |
| VPointT (VBinaryIOStream &stream) | |
| void | readFromStream (VBinaryIOStream &stream) |
| void | writeToStream (VBinaryIOStream &stream) const |
| T | getX () const |
| T | getY () const |
| void | setX (T x) |
| void | setY (T y) |
| T & | rX () |
| T & | rY () |
| VPointT< T > & | operator+= (const VPointT< T > &p) |
| VPointT< T > & | operator-= (const VPointT< T > &p) |
| VPointT< T > & | operator*= (T scale) |
| VPointT< T > & | operator/= (T divisor) |
Static Public Member Functions | |
| static VDouble | getDistance (const VPointT< T > &p1, const VPointT< T > &p2) |
| Returns the distance between two points. | |
| static bool | equal (const VPointT< T > &p1, const VPointT< T > &p2) |
| static bool | notEqual (const VPointT< T > &p1, const VPointT< T > &p2) |
Friends | |
| bool | operator== (const VPointT< T > &p1, const VPointT< T > &p2) |
| bool | operator!= (const VPointT< T > &p1, const VPointT< T > &p2) |
| VPointT< T > | operator+ (const VPointT< T > &p1, const VPointT< T > &p2) |
| VPointT< T > | operator+ (const VPointT< T > &p, const VSizeT< T > &s) |
| VPointT< T > | operator- (const VPointT< T > &p1, const VPointT< T > &p2) |
| VPointT< T > | operator- (const VPointT< T > &p, const VSizeT< T > &s) |
| VPointT< T > | operator- (const VPointT< T > &p) |
| VPointT< T > | operator* (const VPointT< T > &p, T scale) |
| VPointT< T > | operator* (T scale, const VPointT< T > &p) |
| VPointT< T > | operator/ (const VPointT< T > &p, T divisor) |
VPointT defines a point with x and y coordinates.
VPoint uses VDouble coordinates; VIPoint uses int coordinates.
Definition at line 163 of file vgeometry.h.
| static VDouble VPointT< T >::getDistance | ( | const VPointT< T > & | p1, |
| const VPointT< T > & | p2 | ||
| ) | [inline, static] |
Returns the distance between two points.
Definition at line 167 of file vgeometry.h.