OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | List of all members
osg::Vec2i Class Reference

#include <Vec2i.h>

Public Types

enum  { num_components = 2 }
 
typedef int value_type
 

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]
 

Detailed Description

General purpose integer pair.

Definition at line 21 of file Vec2i.h.

Member Typedef Documentation

Type of Vec class.

Definition at line 26 of file Vec2i.h.

Member Enumeration Documentation

anonymous enum

Number of vector components.

Enumerator
num_components 

Definition at line 29 of file Vec2i.h.

Constructor & Destructor Documentation

osg::Vec2i::Vec2i ( )
inline

Definition at line 34 of file Vec2i.h.

Here is the caller graph for this function:

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

Definition at line 36 of file Vec2i.h.

Here is the call graph for this function:

Member Function Documentation

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

Definition at line 70 of file Vec2i.h.

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

Definition at line 73 of file Vec2i.h.

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

Definition at line 39 of file Vec2i.h.

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

Definition at line 75 of file Vec2i.h.

Here is the call graph for this function:

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

Definition at line 105 of file Vec2i.h.

Here is the call graph for this function:

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

Definition at line 85 of file Vec2i.h.

Here is the call graph for this function:

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

Definition at line 95 of file Vec2i.h.

Here is the call graph for this function:

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

Definition at line 90 of file Vec2i.h.

Here is the call graph for this function:

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

Definition at line 100 of file Vec2i.h.

Here is the call graph for this function:

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

Definition at line 80 of file Vec2i.h.

Here is the call graph for this function:

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

Definition at line 40 of file Vec2i.h.

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

Definition at line 38 of file Vec2i.h.

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

Definition at line 60 of file Vec2i.h.

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

Definition at line 61 of file Vec2i.h.

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

Definition at line 47 of file Vec2i.h.

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

Definition at line 48 of file Vec2i.h.

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

Definition at line 69 of file Vec2i.h.

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

Definition at line 72 of file Vec2i.h.

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

Definition at line 50 of file Vec2i.h.

Here is the call graph for this function:

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

Definition at line 55 of file Vec2i.h.

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

Definition at line 63 of file Vec2i.h.

Here is the caller graph for this function:

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

Definition at line 66 of file Vec2i.h.

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

Definition at line 64 of file Vec2i.h.

Here is the caller graph for this function:

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

Definition at line 67 of file Vec2i.h.

Member Data Documentation

value_type osg::Vec2i::_v[2]

Vec member varaible.

Definition at line 32 of file Vec2i.h.


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