openscenegraph
Public Types | Public Member Functions | Public Attributes | List of all members
osg::Vec2ui Class Reference

#include <Vec2ui>

Public Types

enum  { num_components = 2 }
 
typedef unsigned int value_type
 

Public Member Functions

 Vec2ui ()
 
 Vec2ui (value_type x, value_type y)
 
bool operator== (const Vec2ui &v) const
 
bool operator!= (const Vec2ui &v) const
 
bool operator< (const Vec2ui &v) const
 
value_typeptr ()
 
const value_typeptr () const
 
void set (value_type x, value_type y)
 
void set (const Vec2ui &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
 
Vec2ui operator* (value_type rhs) const
 
Vec2ui operator/ (value_type rhs) const
 
Vec2ui operator+ (value_type rhs) const
 
Vec2ui operator- (value_type rhs) const
 
Vec2ui operator+ (const Vec2ui &rhs) const
 
Vec2ui operator- (const Vec2ui &rhs) const
 
Vec2ui operator* (const Vec2ui &rhs) const
 

Public Attributes

value_type _v [2]
 

Detailed Description

General purpose integer pair.

Member Typedef Documentation

◆ value_type

typedef unsigned int osg::Vec2ui::value_type

Type of Vec class.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Number of vector components.

Enumerator
num_components 

Constructor & Destructor Documentation

◆ Vec2ui() [1/2]

osg::Vec2ui::Vec2ui ( )
inline

◆ Vec2ui() [2/2]

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

Member Function Documentation

◆ g() [1/2]

value_type & osg::Vec2ui::g ( )
inline

◆ g() [2/2]

value_type osg::Vec2ui::g ( ) const
inline

◆ operator!=()

bool osg::Vec2ui::operator!= ( const Vec2ui v) const
inline

◆ operator*() [1/2]

Vec2ui osg::Vec2ui::operator* ( const Vec2ui rhs) const
inline

◆ operator*() [2/2]

Vec2ui osg::Vec2ui::operator* ( value_type  rhs) const
inline

◆ operator+() [1/2]

Vec2ui osg::Vec2ui::operator+ ( const Vec2ui rhs) const
inline

◆ operator+() [2/2]

Vec2ui osg::Vec2ui::operator+ ( value_type  rhs) const
inline

◆ operator-() [1/2]

Vec2ui osg::Vec2ui::operator- ( const Vec2ui rhs) const
inline

◆ operator-() [2/2]

Vec2ui osg::Vec2ui::operator- ( value_type  rhs) const
inline

◆ operator/()

Vec2ui osg::Vec2ui::operator/ ( value_type  rhs) const
inline

◆ operator<()

bool osg::Vec2ui::operator< ( const Vec2ui v) const
inline

◆ operator==()

bool osg::Vec2ui::operator== ( const Vec2ui v) const
inline

◆ operator[]() [1/2]

value_type & osg::Vec2ui::operator[] ( int  i)
inline

◆ operator[]() [2/2]

value_type osg::Vec2ui::operator[] ( int  i) const
inline

◆ ptr() [1/2]

value_type * osg::Vec2ui::ptr ( )
inline

◆ ptr() [2/2]

const value_type * osg::Vec2ui::ptr ( ) const
inline

◆ r() [1/2]

value_type & osg::Vec2ui::r ( )
inline

◆ r() [2/2]

value_type osg::Vec2ui::r ( ) const
inline

◆ set() [1/2]

void osg::Vec2ui::set ( const Vec2ui rhs)
inline

◆ set() [2/2]

void osg::Vec2ui::set ( value_type  x,
value_type  y 
)
inline

◆ x() [1/2]

value_type & osg::Vec2ui::x ( )
inline

◆ x() [2/2]

value_type osg::Vec2ui::x ( ) const
inline

◆ y() [1/2]

value_type & osg::Vec2ui::y ( )
inline

◆ y() [2/2]

value_type osg::Vec2ui::y ( ) const
inline

Member Data Documentation

◆ _v

value_type osg::Vec2ui::_v[2]

Vec member variable.


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