OpenSceneGraph
3.5.1
|
Public Types | |
enum | { num_components = 2 } |
Number of vector components. More... | |
typedef short | value_type |
Data type of vector components. More... | |
Public Member Functions | |
Vec2s () | |
Constructor that sets all components of the vector to zero. More... | |
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) |
Vec2s | operator/ (value_type rhs) const |
Vec2s & | operator/= (value_type rhs) |
Vec2s | operator* (const Vec2s &rhs) const |
Vec2s | operator+ (const Vec2s &rhs) const |
Vec2s & | operator+= (const Vec2s &rhs) |
Vec2s | operator- (const Vec2s &rhs) const |
Vec2s & | operator-= (const Vec2s &rhs) |
Vec2s | operator- () const |
Public Attributes | |
value_type | _v [2] |
typedef short osg::Vec2s::value_type |
Data type of vector components.
|
inline |
Constructor that sets all components of the vector to zero.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
value_type osg::Vec2s::_v[2] |
Generated at Wed Nov 11 2015 22:14:47 for the OpenSceneGraph by doxygen 1.8.10. |