SMIL
1.0.4
|
Struct Point.
#include <DCommon.h>
Public Member Functions | |
Point () | |
Contructor - an empty point. More... | |
Point (const Point &pt) | |
Constructor from another point. More... | |
Point (T _x, T _y, T _z) | |
3D Point Constructor More... | |
Point (T _x, T _y) | |
2D Point Constructor More... | |
bool | operator== (const Point &p2) |
operator== - comparison More... | |
Point | operator- (const Point &p2) |
operator- - subtract two points More... | |
Point | operator+ (const Point &p2) |
operator+ - add two points More... | |
void | printSelf (string indent="") |
printSelf() - Print point coordinates More... | |
Public Attributes | |
T | x |
T | y |
T | z |
|
inline |
Contructor - an empty point.
All coordinates are set to 0
Constructor from another point.
|
inline |
operator== - comparison
[in] | p2 | : point |
operator- - subtract two points
Example
operator+ - add two points
Example
|
inline |
printSelf() - Print point coordinates
[in] | indent | : prefix to add to each line |