Generic integer x, y vector.
More...
#include <math/gzmath.hh>
|
int | x |
| x data
|
|
int | y |
| y data
|
|
Generic integer x, y vector.
gazebo::math::Vector2i::Vector2i |
( |
| ) |
|
gazebo::math::Vector2i::Vector2i |
( |
const int & |
_x, |
|
|
const int & |
_y |
|
) |
| |
Constructor.
- Parameters
-
[in] | _x | value along x |
[in] | _y | value along y |
gazebo::math::Vector2i::Vector2i |
( |
const Vector2i & |
_pt | ) |
|
Copy onstructor.
- Parameters
-
virtual gazebo::math::Vector2i::~Vector2i |
( |
| ) |
|
|
virtual |
Return the cross product of this vector and _pt.
- Parameters
-
- Returns
- the product
int gazebo::math::Vector2i::Distance |
( |
const Vector2i & |
_pt | ) |
const |
Calc distance to the given point.
- Parameters
-
- Returns
- the distance
bool gazebo::math::Vector2i::IsFinite |
( |
| ) |
const |
See if a point is finite (e.g., not nan)
- Returns
- the result
void gazebo::math::Vector2i::Normalize |
( |
| ) |
|
Normalize the vector length.
bool gazebo::math::Vector2i::operator!= |
( |
const Vector2i & |
_v | ) |
const |
Equality operators.
- Parameters
-
_v | the vector to compare with |
- Returns
- true if component have different values, false otherwise
Multiplication operator.
- Parameters
-
- Returns
- the result
const Vector2i gazebo::math::Vector2i::operator* |
( |
int |
_v | ) |
const |
Multiplication operator.
- Parameters
-
- Returns
- the result
Multiplication operators.
- Parameters
-
- Returns
- this
const Vector2i& gazebo::math::Vector2i::operator*= |
( |
int |
_v | ) |
|
Multiplication operator.
- Parameters
-
- Returns
- this
Addition operator.
- Parameters
-
- Returns
- the sum vector
Addition assignment operator.
- Parameters
-
- Returns
- this
Subtraction operator.
- Parameters
-
[in] | _v | the vector to substract |
- Returns
- the result vector
Subtraction operators.
- Parameters
-
[in] | _v | the vector to substract |
- Returns
- this
Division operator.
- Parameters
-
[in] | _v | the vector to divide |
- Returns
- the result
const Vector2i gazebo::math::Vector2i::operator/ |
( |
int |
_v | ) |
const |
Division operator.
- Parameters
-
[in] | _v | the vector to divide |
- Returns
- the result
Division operator.
- Parameters
-
[in] | _v | the vector to divide |
- Returns
- this
const Vector2i& gazebo::math::Vector2i::operator/= |
( |
int |
_v | ) |
|
Division operator.
- Parameters
-
[in] | _v | the vector to divide |
- Returns
- this
Assignment operator.
- Parameters
-
- Returns
- this
const Vector2i& gazebo::math::Vector2i::operator= |
( |
int |
_value | ) |
|
Assignment operator.
- Parameters
-
[in] | _value | the value for x and y |
- Returns
- this
bool gazebo::math::Vector2i::operator== |
( |
const Vector2i & |
_v | ) |
const |
Equality operator.
- Parameters
-
_v | the vector to compare with |
- Returns
- true if component have the same values, false otherwise
int gazebo::math::Vector2i::operator[] |
( |
unsigned int |
_index | ) |
const |
Array subscript operator.
- Parameters
-
[in] | _index | the array index |
void gazebo::math::Vector2i::Set |
( |
int |
_x, |
|
|
int |
_y |
|
) |
| |
Set the contents of the vector.
- Parameters
-
[in] | _x | value along x |
[in] | _y | value along y |
Stream insertion operator.
- Parameters
-
[in] | _out | output stream |
[in] | pt | Vector2i to output |
- Returns
- the stream
Stream extraction operator.
- Parameters
-
[in] | _in | input stream |
[in] | _pt | Vector3 to read values into |
- Returns
- The stream
int gazebo::math::Vector2i::x |
int gazebo::math::Vector2i::y |
The documentation for this class was generated from the following file: