OpenSceneGraph  3.5.1
Public Types | Public Member Functions | Public Attributes | List of all members
osg::Vec2us Class Reference

Public Types

enum  { num_components = 2 }
 Number of vector components. More...
 
typedef unsigned short value_type
 Data type of vector components. More...
 

Public Member Functions

 Vec2us ()
 Constructor that sets all components of the vector to zero. More...
 
 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_typeptr ()
 
const value_typeptr () const
 
void set (value_type x, value_type y)
 
void set (const Vec2us &rhs)
 
value_typeoperator[] (int i)
 
value_type operator[] (int i) const
 
value_typex ()
 
value_typey ()
 
value_type x () const
 
value_type y () const
 
value_typer ()
 
value_typeg ()
 
value_type r () const
 
value_type g () const
 
Vec2us operator* (value_type rhs) const
 
Vec2usoperator*= (value_type rhs)
 
Vec2us operator/ (value_type rhs) const
 
Vec2usoperator/= (value_type rhs)
 
Vec2us operator+ (const Vec2us &rhs) const
 
Vec2usoperator+= (const Vec2us &rhs)
 
Vec2us operator- (const Vec2us &rhs) const
 
Vec2usoperator-= (const Vec2us &rhs)
 

Public Attributes

value_type _v [2]
 

Member Typedef Documentation

typedef unsigned short osg::Vec2us::value_type

Data type of vector components.

Member Enumeration Documentation

anonymous enum

Number of vector components.

Enumerator
num_components 

Constructor & Destructor Documentation

osg::Vec2us::Vec2us ( )
inline

Constructor that sets all components of the vector to zero.

osg::Vec2us::Vec2us ( value_type  x,
value_type  y 
)
inline

Member Function Documentation

value_type& osg::Vec2us::g ( )
inline
value_type osg::Vec2us::g ( ) const
inline
bool osg::Vec2us::operator!= ( const Vec2us v) const
inline
Vec2us osg::Vec2us::operator* ( value_type  rhs) const
inline
Vec2us& osg::Vec2us::operator*= ( value_type  rhs)
inline
Vec2us osg::Vec2us::operator+ ( const Vec2us rhs) const
inline
Vec2us& osg::Vec2us::operator+= ( const Vec2us rhs)
inline
Vec2us osg::Vec2us::operator- ( const Vec2us rhs) const
inline
Vec2us& osg::Vec2us::operator-= ( const Vec2us rhs)
inline
Vec2us osg::Vec2us::operator/ ( value_type  rhs) const
inline
Vec2us& osg::Vec2us::operator/= ( value_type  rhs)
inline
bool osg::Vec2us::operator< ( const Vec2us v) const
inline
bool osg::Vec2us::operator== ( const Vec2us v) const
inline
value_type& osg::Vec2us::operator[] ( int  i)
inline
value_type osg::Vec2us::operator[] ( int  i) const
inline
value_type* osg::Vec2us::ptr ( )
inline
const value_type* osg::Vec2us::ptr ( ) const
inline
value_type& osg::Vec2us::r ( )
inline
value_type osg::Vec2us::r ( ) const
inline
void osg::Vec2us::set ( value_type  x,
value_type  y 
)
inline
void osg::Vec2us::set ( const Vec2us rhs)
inline
value_type& osg::Vec2us::x ( )
inline
value_type osg::Vec2us::x ( ) const
inline
value_type& osg::Vec2us::y ( )
inline
value_type osg::Vec2us::y ( ) const
inline

Member Data Documentation

value_type osg::Vec2us::_v[2]

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

osg logo
Generated at Wed Nov 11 2015 22:14:47 for the OpenSceneGraph by doxygen 1.8.10.