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

General purpose integer pair. More...

Public Types

enum  { num_components = 2 }
 Number of vector components. More...
 
typedef int value_type
 Type of Vec class. More...
 

Public Member Functions

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

Public Attributes

value_type _v [2]
 Vec member varaible. More...
 

Detailed Description

General purpose integer pair.

Member Typedef Documentation

Type of Vec class.

Member Enumeration Documentation

anonymous enum

Number of vector components.

Enumerator
num_components 

Constructor & Destructor Documentation

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

Member Function Documentation

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

Member Data Documentation

value_type osg::Vec2i::_v[2]

Vec member varaible.


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.