Generic double x, y vector. More...
#include <Types.hh>
Public Member Functions | |
| Vector2d (double _x=0.0, double _y=0.0) | |
| Constructor. More... | |
| bool | operator== (const Vector2d &_pt) const |
| Equal to operator. More... | |
Public Attributes | |
| double | x |
| x data More... | |
| double | y |
| y data More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &_out, const Vector2d &_pt) |
| Stream extraction operator. More... | |
| std::istream & | operator>> (std::istream &_in, Vector2d &_pt) |
| Stream extraction operator. More... | |
Generic double x, y vector.
|
inline |
Constructor.
| [in] | _x | value along x |
| [in] | _y | value along y |
|
inline |
Equal to operator.
| [in] | _v | the vector to compare to |
References sdf::equal(), x, and y.
|
friend |
Stream extraction operator.
| [in] | _out | output stream |
| [in] | _pt | Vector2d to output |
|
friend |
Stream extraction operator.
| [in] | _in | input stream |
| [in] | _pt | Vector2d to read values into |
| double sdf::Vector2d::x |
x data
Referenced by operator==().
| double sdf::Vector2d::y |
y data
Referenced by operator==().