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::Vec2s Class Reference

#include <Vec2s.h>

Public Types

enum  { num_components = 2 }
 
typedef short value_type
 

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
 
Vec2soperator*= (value_type rhs)
 
Vec2s operator/ (value_type rhs) const
 
Vec2soperator/= (value_type rhs)
 
Vec2s operator* (const Vec2s &rhs) const
 
Vec2s operator+ (const Vec2s &rhs) const
 
Vec2soperator+= (const Vec2s &rhs)
 
Vec2s operator- (const Vec2s &rhs) const
 
Vec2soperator-= (const Vec2s &rhs)
 
Vec2s operator- () const
 

Public Attributes

value_type _v [2]
 

Detailed Description

Definition at line 19 of file Vec2s.h.

Member Typedef Documentation

typedef short osg::Vec2s::value_type

Data type of vector components.

Definition at line 24 of file Vec2s.h.

Member Enumeration Documentation

anonymous enum

Number of vector components.

Enumerator
num_components 

Definition at line 27 of file Vec2s.h.

Constructor & Destructor Documentation

osg::Vec2s::Vec2s ( )
inline

Constructor that sets all components of the vector to zero

Definition at line 32 of file Vec2s.h.

Here is the caller graph for this function:

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

Definition at line 34 of file Vec2s.h.

Here is the call graph for this function:

Member Function Documentation

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

Definition at line 68 of file Vec2s.h.

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

Definition at line 71 of file Vec2s.h.

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

Definition at line 37 of file Vec2s.h.

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

Definition at line 73 of file Vec2s.h.

Here is the call graph for this function:

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

Definition at line 97 of file Vec2s.h.

Here is the call graph for this function:

Vec2s& osg::Vec2s::operator*= ( value_type  rhs)
inline

Definition at line 78 of file Vec2s.h.

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

Definition at line 102 of file Vec2s.h.

Here is the call graph for this function:

Vec2s& osg::Vec2s::operator+= ( const Vec2s rhs)
inline

Definition at line 107 of file Vec2s.h.

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

Definition at line 114 of file Vec2s.h.

Here is the call graph for this function:

Vec2s osg::Vec2s::operator- ( ) const
inline

Definition at line 127 of file Vec2s.h.

Here is the call graph for this function:

Vec2s& osg::Vec2s::operator-= ( const Vec2s rhs)
inline

Definition at line 119 of file Vec2s.h.

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

Definition at line 85 of file Vec2s.h.

Here is the call graph for this function:

Vec2s& osg::Vec2s::operator/= ( value_type  rhs)
inline

Definition at line 90 of file Vec2s.h.

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

Definition at line 38 of file Vec2s.h.

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

Definition at line 36 of file Vec2s.h.

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

Definition at line 58 of file Vec2s.h.

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

Definition at line 59 of file Vec2s.h.

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

Definition at line 45 of file Vec2s.h.

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

Definition at line 46 of file Vec2s.h.

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

Definition at line 67 of file Vec2s.h.

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

Definition at line 70 of file Vec2s.h.

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

Definition at line 48 of file Vec2s.h.

Here is the call graph for this function:

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

Definition at line 53 of file Vec2s.h.

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

Definition at line 61 of file Vec2s.h.

Here is the caller graph for this function:

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

Definition at line 64 of file Vec2s.h.

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

Definition at line 62 of file Vec2s.h.

Here is the caller graph for this function:

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

Definition at line 65 of file Vec2s.h.

Member Data Documentation

value_type osg::Vec2s::_v[2]

Definition at line 29 of file Vec2s.h.


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