osg::Vec2s Class Reference

List of all members.

Public Types

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

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]
 Vec member varaible.


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Vec2s osg::Vec2s::operator+ ( value_type  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- ( const Vec2s rhs  )  const [inline]

Vec2s osg::Vec2s::operator * ( const Vec2s rhs  )  const [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 at Sun Oct 14 02:12:19 2007 for the OpenSceneGraph by doxygen 1.5.3.