OpenSceneGraph
3.4.0
|
Public Types | |
enum | { num_components = 2 } |
Number of vector components. More... | |
typedef unsigned short | value_type |
Data type of vector components. | |
Public Member Functions | |
Vec2us () | |
Constructor that sets all components of the vector to zero. | |
Vec2us (value_type x, value_type y) | |
bool | operator== (const Vec2us &v) const |
bool | operator!= (const Vec2us &v) const |
bool | operator< (const Vec2us &v) const |
value_type * | ptr () |
const value_type * | ptr () const |
void | set (value_type x, value_type y) |
void | set (const Vec2us &rhs) |
value_type & | operator[] (int i) |
value_type | operator[] (int i) const |
value_type & | x () |
value_type & | y () |
value_type | x () const |
value_type | y () const |
value_type & | r () |
value_type & | g () |
value_type | r () const |
value_type | g () const |
Vec2us | operator* (value_type rhs) const |
Vec2us & | operator*= (value_type rhs) |
Vec2us | operator/ (value_type rhs) const |
Vec2us & | operator/= (value_type rhs) |
Vec2us | operator+ (const Vec2us &rhs) const |
Vec2us & | operator+= (const Vec2us &rhs) |
Vec2us | operator- (const Vec2us &rhs) const |
Vec2us & | operator-= (const Vec2us &rhs) |
Public Attributes | |
value_type | _v [2] |
typedef unsigned short osg::Vec2us::value_type |
Data type of vector components.
osg::Vec2us::Vec2us | ( | ) | [inline] |
Constructor that sets all components of the vector to zero.
References _v.
Referenced by operator*(), operator+(), operator-(), and operator/().
osg::Vec2us::Vec2us | ( | value_type | x, |
value_type | y | ||
) | [inline] |
value_type& osg::Vec2us::g | ( | ) | [inline] |
References _v.
value_type osg::Vec2us::g | ( | ) | const [inline] |
References _v.
Vec2us osg::Vec2us::operator* | ( | value_type | rhs | ) | const [inline] |
Vec2us& osg::Vec2us::operator*= | ( | value_type | rhs | ) | [inline] |
References _v.
Vec2us osg::Vec2us::operator/ | ( | value_type | rhs | ) | const [inline] |
Vec2us& osg::Vec2us::operator/= | ( | value_type | rhs | ) | [inline] |
References _v.
value_type& osg::Vec2us::operator[] | ( | int | i | ) | [inline] |
References _v.
value_type osg::Vec2us::operator[] | ( | int | i | ) | const [inline] |
References _v.
value_type* osg::Vec2us::ptr | ( | ) | [inline] |
References _v.
const value_type* osg::Vec2us::ptr | ( | ) | const [inline] |
References _v.
value_type& osg::Vec2us::r | ( | ) | [inline] |
References _v.
value_type osg::Vec2us::r | ( | ) | const [inline] |
References _v.
void osg::Vec2us::set | ( | value_type | x, |
value_type | y | ||
) | [inline] |
void osg::Vec2us::set | ( | const Vec2us & | rhs | ) | [inline] |
References _v.
value_type& osg::Vec2us::x | ( | ) | [inline] |
value_type osg::Vec2us::x | ( | ) | const [inline] |
References _v.
value_type& osg::Vec2us::y | ( | ) | [inline] |
value_type osg::Vec2us::y | ( | ) | const [inline] |
References _v.
Referenced by g(), operator!=(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<(), operator==(), operator[](), ptr(), r(), set(), Vec2us(), x(), and y().
![]() | Generated at Tue Dec 8 2015 00:14:27 for the OpenSceneGraph by doxygen 1.7.6.1. |