Public Types | |
enum | { num_components = 2 } |
Number of vector components. More... | |
typedef short | value_type |
Type of Vec class. | |
Public Member Functions | |
Vec2s () | |
Vec2s (value_type x, value_type y) | |
bool | operator== (const Vec2s &v) const |
bool | operator!= (const Vec2s &v) const |
bool | operator< (const Vec2s &v) const |
value_type * | ptr () |
const value_type * | ptr () const |
void | set (value_type x, value_type y) |
void | set (const Vec2s &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 |
Vec2s | operator * (value_type rhs) const |
Vec2s | operator/ (value_type rhs) const |
Vec2s | operator+ (value_type rhs) const |
Vec2s | operator- (value_type rhs) const |
Vec2s | operator+ (const Vec2s &rhs) const |
Vec2s | operator- (const Vec2s &rhs) const |
Vec2s | operator * (const Vec2s &rhs) const |
Public Attributes | |
value_type | _v [2] |
Vec member varaible. |
typedef short osg::Vec2s::value_type |
Type of Vec class.
osg::Vec2s::Vec2s | ( | ) | [inline] |
osg::Vec2s::Vec2s | ( | value_type | x, | |
value_type | y | |||
) | [inline] |
bool osg::Vec2s::operator== | ( | const Vec2s & | v | ) | const [inline] |
bool osg::Vec2s::operator!= | ( | const Vec2s & | v | ) | const [inline] |
bool osg::Vec2s::operator< | ( | const Vec2s & | v | ) | const [inline] |
value_type* osg::Vec2s::ptr | ( | ) | [inline] |
const value_type* osg::Vec2s::ptr | ( | ) | const [inline] |
void osg::Vec2s::set | ( | value_type | x, | |
value_type | y | |||
) | [inline] |
void osg::Vec2s::set | ( | const Vec2s & | rhs | ) | [inline] |
value_type& osg::Vec2s::operator[] | ( | int | i | ) | [inline] |
value_type osg::Vec2s::operator[] | ( | int | i | ) | const [inline] |
value_type& osg::Vec2s::x | ( | ) | [inline] |
value_type& osg::Vec2s::y | ( | ) | [inline] |
value_type osg::Vec2s::x | ( | ) | const [inline] |
value_type osg::Vec2s::y | ( | ) | const [inline] |
value_type& osg::Vec2s::r | ( | ) | [inline] |
value_type& osg::Vec2s::g | ( | ) | [inline] |
value_type osg::Vec2s::r | ( | ) | const [inline] |
value_type osg::Vec2s::g | ( | ) | const [inline] |
Vec2s osg::Vec2s::operator * | ( | value_type | rhs | ) | const [inline] |
Vec2s osg::Vec2s::operator/ | ( | value_type | rhs | ) | const [inline] |
Vec2s osg::Vec2s::operator+ | ( | value_type | rhs | ) | const [inline] |
Vec2s osg::Vec2s::operator- | ( | value_type | rhs | ) | const [inline] |
Vec member varaible.