All Classes Namespaces Files Functions Variables Typedefs Friends Macros Groups Pages
Public Member Functions | Public Attributes | Friends | List of all members
sdf::Vector2i Class Reference

Generic integer x, y vector. More...

#include <Types.hh>

Public Member Functions

 Vector2i (int _x=0, int _y=0)
 Constructor. More...
 
bool operator== (const Vector2i &_pt) const
 Equality operator. More...
 

Public Attributes

int x
 x data More...
 
int y
 y data More...
 

Friends

std::ostream & operator<< (std::ostream &_out, const Vector2i &_pt)
 Stream insertion operator. More...
 
std::istream & operator>> (std::istream &_in, Vector2i &_pt)
 Stream extraction operator. More...
 

Detailed Description

Generic integer x, y vector.

Deprecated:
Use ignition::math::Vector2i

Constructor & Destructor Documentation

sdf::Vector2i::Vector2i ( int  _x = 0,
int  _y = 0 
)
inline

Constructor.

Parameters
[in]_xvalue along x
[in]_yvalue along y

Member Function Documentation

bool sdf::Vector2i::operator== ( const Vector2i _pt) const
inline

Equality operator.

Parameters
_ptThe vector to compare with
Returns
True if component have the same values, false otherwise

References x, and y.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  _out,
const Vector2i _pt 
)
friend

Stream insertion operator.

Parameters
[in]_outoutput stream
[in]ptVector2i to output
Returns
the stream
std::istream& operator>> ( std::istream &  _in,
Vector2i _pt 
)
friend

Stream extraction operator.

Parameters
[in]_ininput stream
[in]_ptVector2i to read values into
Returns
The stream

Member Data Documentation

int sdf::Vector2i::x

x data

Referenced by operator==().

int sdf::Vector2i::y

y data

Referenced by operator==().


The documentation for this class was generated from the following file: