#include <HxPointR2.h>
Public Methods | |
| HxPointR2 () | |
| Constructor. More... | |
| HxPointR2 (double d1, double d2) | |
| Constructor. More... | |
| HxPointR2 (const HxVec2Double &v) | |
| Copy constructor. More... | |
| double | x () const |
| Get the x coordinate of the point. More... | |
| double | y () const |
| Get the y coordinate of the point. More... | |
| HxPointR2 | add (const HxVectorR2 &arg) const |
| Add the given vector to this point. More... | |
| HxPointR2 | sub (const HxVectorR2 &arg) const |
| Subtract the given vector from this point. More... | |
| STD_OSTREAM & | put (STD_OSTREAM &) const |
| Put the arrow on the given stream. More... | |
| STD_OSTREAM & | dump (HxPointR2 &) const |
| HxString | toString () const |
Friends | |
| class | HxVectorR2 |
|
|
Constructor.
00068 : _data(0,0)
00069 {
00070 }
|
|
||||||||||||
|
Constructor.
00073 : _data(d1, d2)
00074 {
00075 }
|
|
|
Copy constructor.
00078 : _data(v)
00079 {
00080 }
|
|
|
Get the x coordinate of the point.
00084 {
00085 return _data.x();
00086 }
|
|
|
Get the y coordinate of the point.
00090 {
00091 return _data.y();
00092 }
|
|
|
Add the given vector to this point.
|
|
|
Subtract the given vector from this point.
|
|
|
Put the arrow on the given stream.
00102 {
00103 return os << _data;
00104 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001