osg::Vec2s Class Reference

List of all members.

Public Types

typedef short value_type
 num_components = 2
enum  { num_components = 2 }

Public Member Functions

 Vec2s ()
 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_typeptr ()
const value_typeptr () const
void set (value_type x, value_type y)
void set (const Vec2s &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
Vec2s operator * (value_type rhs) const
Vec2s operator/ (value_type rhs) const
Vec2s operator+ (value_type rhs) const
Vec2s operator- (value_type rhs) const
Vec2s operator+ (const Vec2s &rhs) const
Vec2s operator- (const Vec2s &rhs) const
Vec2s operator * (const Vec2s &rhs) const

Public Attributes

value_type _v [2]

Member Typedef Documentation

typedef short osg::Vec2s::value_type

Type of Vec class.


Member Enumeration Documentation

anonymous enum

Number of vector components.

Enumerator:
num_components 


Constructor & Destructor Documentation

osg::Vec2s::Vec2s (  )  [inline]

osg::Vec2s::Vec2s ( value_type  x,
value_type  y 
) [inline]


Member Function Documentation

value_type osg::Vec2s::g (  )  const [inline]

value_type& osg::Vec2s::g (  )  [inline]

Vec2s osg::Vec2s::operator * ( const Vec2s rhs  )  const [inline]

Vec2s osg::Vec2s::operator * ( value_type  rhs  )  const [inline]

bool osg::Vec2s::operator!= ( const Vec2s v  )  const [inline]

Vec2s osg::Vec2s::operator+ ( const Vec2s rhs  )  const [inline]

Vec2s osg::Vec2s::operator+ ( value_type  rhs  )  const [inline]

Vec2s osg::Vec2s::operator- ( const Vec2s rhs  )  const [inline]

Vec2s osg::Vec2s::operator- ( value_type  rhs  )  const [inline]

Vec2s osg::Vec2s::operator/ ( value_type  rhs  )  const [inline]

bool osg::Vec2s::operator< ( const Vec2s v  )  const [inline]

bool osg::Vec2s::operator== ( const Vec2s v  )  const [inline]

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

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

const value_type* osg::Vec2s::ptr (  )  const [inline]

value_type* osg::Vec2s::ptr (  )  [inline]

value_type osg::Vec2s::r (  )  const [inline]

value_type& osg::Vec2s::r (  )  [inline]

void osg::Vec2s::set ( const Vec2s rhs  )  [inline]

void osg::Vec2s::set ( value_type  x,
value_type  y 
) [inline]

value_type osg::Vec2s::x (  )  const [inline]

value_type& osg::Vec2s::x (  )  [inline]

value_type osg::Vec2s::y (  )  const [inline]

value_type& osg::Vec2s::y (  )  [inline]


Member Data Documentation

value_type osg::Vec2s::_v[2]

Vec member varaible.


The documentation for this class was generated from the following file:
Generated on Sun Oct 1 13:17:08 2006 for openscenegraph by  doxygen 1.4.7