Generic double x, y vector.
More...
#include <Types.hh>
Generic double x, y vector.
- Deprecated:
- Use ignition::math::Vector2d
sdf::Vector2d::Vector2d |
( |
double |
_x = 0.0 , |
|
|
double |
_y = 0.0 |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
[in] | _x | value along x |
[in] | _y | value along y |
bool sdf::Vector2d::operator== |
( |
const Vector2d & |
_pt | ) |
const |
|
inline |
Equal to operator.
- Parameters
-
[in] | _v | the vector to compare to |
- Returns
- true if the elements of the 2 vectors are equal within a tolerence (1e-6)
References sdf::equal(), x, and y.
std::ostream& operator<< |
( |
std::ostream & |
_out, |
|
|
const Vector2d & |
_pt |
|
) |
| |
|
friend |
Stream extraction operator.
- Parameters
-
[in] | _out | output stream |
[in] | _pt | Vector2d to output |
- Returns
- The stream
std::istream& operator>> |
( |
std::istream & |
_in, |
|
|
Vector2d & |
_pt |
|
) |
| |
|
friend |
Stream extraction operator.
- Parameters
-
[in] | _in | input stream |
[in] | _pt | Vector2d to read values into |
- Returns
- The stream
The documentation for this class was generated from the following file: