Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

osg::Vec2f Class Reference

Inheritance diagram for osg::Vec2f:

osg::VectorInterface< Real32, VecStorage2 > osg::PointInterface< Real32, VecStorage2 > osg::VecStorage2< ValueTypeT > List of all members.

Public Types

typedef PointInterface< Real32,
VecStorage2
Inherited
typedef TypeTraits< Real32
>::RealReturnType 
RealReturnType
typedef Real32 ValueType
typedef Inherited PntInterface
typedef VectorInterface< Real32,
VecStorage2
Self
typedef VectorInterface< Real32,
VecStorage2
VecInterface

Public Member Functions

VectorInterface (void)
 VectorInterface (const Real32 *pVals)
 VectorInterface (Real32 *pVals)
 VectorInterface (const VectorT &vec)
 VectorInterface (const VectorInterface &source)
 VectorInterface (const Real32rVal1, const Real32rVal2)
 VectorInterface (const Real32rVal1, const Real32rVal2, const Real32rVal3)
 VectorInterface (const Real32rVal1, const Real32rVal2, const Real32rVal3, const Real32rVal4)
*RealReturnType length (void) const
RealReturnType squareLength (void) const
void normalize (void)
VectorInterface cross (const VectorInterface &vec) const
VectorInterface operator% (const VectorInterface &vec) const
void crossThis (const VectorInterface &vec)
Real32 dot (const VectorInterface &vec) const
Real32 dot (const PntInterface &pnt) const
Real32 operator * (const VectorInterface &vec) const
Real32 operator * (const PntInterface &pnt) const
VectorInterface operator * (const Real32rVal) const
RealReturnType enclosedAngle (const VectorInterface &vec) const
RealReturnType projectTo (const VectorInterface &toVec)
*PntInterfaceaddToZero (void)
const PntInterfaceaddToZero (void) const
VectorInterfacesubZero (void)
const VectorInterfacesubZero (void) const
*VectorInterface operator- (const VectorInterface &vec) const
VectorInterface operator- (void) const
VecInterface operator- (const PointInterface &vec) const
PointInterface operator- (const VecInterface &vec) const
PointInterface operator- (void)
VectorInterface operator+ (const VectorInterface &vec) const
PointInterface operator+ (const VecInterface &vec) const
*bool operator< (const VectorInterface &other) const
*bool operator< (const PointInterface &other) const
bool operator== (const VectorInterface &other) const
bool operator== (const PointInterface &other) const
bool operator!= (const VectorInterface &other) const
bool operator!= (const PointInterface &other) const
PointInterface (void)
 PointInterface (const Real32 *pVals)
 PointInterface (Real32 *pVals)
 PointInterface (const VectorT &vec)
 PointInterface (const PointInterface &source)
 PointInterface (const Real32rVal1, const Real32rVal2)
 PointInterface (const Real32rVal1, const Real32rVal2, const Real32rVal3)
 PointInterface (const Real32rVal1, const Real32rVal2, const Real32rVal3, const Real32rVal4)
*void setNull (void)
void setValue (const PointInterface &vec)
void setValue (const VectorT &vec)
void setValue (const Real32 *pVals)
void setValue (Real32 *pVals)
void setValue (const Char8 *szString)
void setValue (Char8 *szString)
void setValueFromCString (const Char8 *szString)
void setValueFromCString (Char8 *szString)
*Real32getValues (void)
const Real32getValues (void) const
*bool isZero (void) const
void negate (void)
bool equals (const PointInterface &vec, const Real32tolerance) const
RealReturnType dist (const PointInterface &vec) const
RealReturnType dist2 (const PointInterface &vec) const
RealReturnType maxValue (void) const
*void operator *= (const Real32val)
void operator/= (const Real32val)
void operator+= (const VecInterface &vec)
void operator-= (const VecInterface &vec)
*Real32operator[] (const UInt32 uiVal)
const Real32operator[] (const UInt32 uiVal) const
Access
*void setValues (const ValueTypeT rVal1, const ValueTypeT rVal2)
void getSeparateValues (ValueTypeT &rVal1, ValueTypeT &rVal2) const
ValueTypeT x (void) const
ValueTypeT y (void) const

Static Public Attributes

static const VectorInterface Null
static const UInt32 _iSize = 2
 Storage size.

Protected Attributes

ValueTypeT _values [_iSize]
 Value store.

Detailed Description

This is a documentation wrapper. Its only purpose is to fool doxygen into thinking of a typedef as a class and to allow you to find all the needed info from this page.

Warning:
The real inheritance is not what you see here.

This is just to give you an idea of the conceptual relations and to help you understand the available methods of this class.

Definition at line 2852 of file dummyClasses.dox.


Member Typedef Documentation

typedef PointInterface<Real32 , VecStorage2 > osg::VectorInterface< Real32 , VecStorage2 >::Inherited [inherited]
 

Reimplemented from osg::PointInterface< Real32, VecStorage2 >.

Definition at line 544 of file OSGVector.h.

typedef TypeTraits<Real32 >::RealReturnType osg::VectorInterface< Real32 , VecStorage2 >::RealReturnType [inherited]
 

Reimplemented from osg::PointInterface< Real32, VecStorage2 >.

Definition at line 546 of file OSGVector.h.

typedef Real32 osg::VectorInterface< Real32 , VecStorage2 >::ValueType [inherited]
 

Reimplemented from osg::PointInterface< Real32, VecStorage2 >.

Definition at line 548 of file OSGVector.h.

typedef Inherited osg::VectorInterface< Real32 , VecStorage2 >::PntInterface [inherited]
 

Definition at line 550 of file OSGVector.h.

typedef VectorInterface<Real32 , VecStorage2 > osg::VectorInterface< Real32 , VecStorage2 >::Self [inherited]
 

Reimplemented from osg::PointInterface< Real32, VecStorage2 >.

Definition at line 553 of file OSGVector.h.

typedef VectorInterface<Real32 , VecStorage2 > osg::PointInterface< Real32 , VecStorage2 >::VecInterface [inherited]
 

Definition at line 296 of file OSGVector.h.


Member Function Documentation

* osg::VectorInterface< Real32 , VecStorage2 >::VectorInterface void   )  [inherited]
 

osg::VectorInterface< Real32 , VecStorage2 >::VectorInterface const Real32 pVals  )  [explicit, inherited]
 

Be shure the array size at least as large as the vector size.

osg::VectorInterface< Real32 , VecStorage2 >::VectorInterface Real32 pVals  )  [explicit, inherited]
 

Be shure the array size at least as large as the vector size.

osg::VectorInterface< Real32 , VecStorage2 >::VectorInterface const VectorT &  vec  )  [inline, explicit, inherited]
 

Definition at line 572 of file OSGVector.h.

00573     {
00574         if(Self::_iSize <= VectorT::_iSize)
00575         {
00576             for(UInt32 i = 0; i < Self::_iSize; i++)
00577             {
00578                 Self::_values[i] = vec.getValues()[i];
00579             }
00580         }
00581         else
00582         {
00583             UInt32 i;
00584             for(i = 0; i < VectorT::_iSize; i++)
00585             {
00586                 Self::_values[i] = vec.getValues()[i];
00587             }
00588             for(i = VectorT::_iSize; i < Self::_iSize; i++)
00589             {
00590                 Self::_values[i] = TypeTraits<ValueTypeT>::getZeroElement();
00591             }
00592         }
00593     }

osg::VectorInterface< Real32 , VecStorage2 >::VectorInterface const VectorInterface< Real32, VecStorage2 > &  source  )  [inherited]
 

osg::VectorInterface< Real32 , VecStorage2 >::VectorInterface const Real32   rVal1,
const Real32   rVal2
[inherited]
 

osg::VectorInterface< Real32 , VecStorage2 >::VectorInterface const Real32   rVal1,
const Real32   rVal2,
const Real32   rVal3
[inherited]
 

osg::VectorInterface< Real32 , VecStorage2 >::VectorInterface const Real32   rVal1,
const Real32   rVal2,
const Real32   rVal3,
const Real32   rVal4
[inherited]
 

* RealReturnType osg::VectorInterface< Real32 , VecStorage2 >::length void   )  const [inherited]
 

RealReturnType osg::VectorInterface< Real32 , VecStorage2 >::squareLength void   )  const [inherited]
 

void osg::VectorInterface< Real32 , VecStorage2 >::normalize void   )  [inherited]
 

VectorInterface osg::VectorInterface< Real32 , VecStorage2 >::cross const VectorInterface< Real32, VecStorage2 > &  vec  )  const [inherited]
 

VectorInterface osg::VectorInterface< Real32 , VecStorage2 >::operator% const VectorInterface< Real32, VecStorage2 > &  vec  )  const [inherited]
 

void osg::VectorInterface< Real32 , VecStorage2 >::crossThis const VectorInterface< Real32, VecStorage2 > &  vec  )  [inherited]
 

Real32 osg::VectorInterface< Real32 , VecStorage2 >::dot const VectorInterface< Real32, VecStorage2 > &  vec  )  const [inherited]
 

Real32 osg::VectorInterface< Real32 , VecStorage2 >::dot const PntInterface pnt  )  const [inherited]
 

Real32 osg::VectorInterface< Real32 , VecStorage2 >::operator * const VectorInterface< Real32, VecStorage2 > &  vec  )  const [inherited]
 

Real32 osg::VectorInterface< Real32 , VecStorage2 >::operator * const PntInterface pnt  )  const [inherited]
 

VectorInterface osg::VectorInterface< Real32 , VecStorage2 >::operator * const Real32   rVal  )  const [inherited]
 

Reimplemented from osg::PointInterface< Real32, VecStorage2 >.

RealReturnType osg::VectorInterface< Real32 , VecStorage2 >::enclosedAngle const VectorInterface< Real32, VecStorage2 > &  vec  )  const [inherited]
 

RealReturnType osg::VectorInterface< Real32 , VecStorage2 >::projectTo const VectorInterface< Real32, VecStorage2 > &  toVec  )  [inherited]
 

* PntInterface& osg::VectorInterface< Real32 , VecStorage2 >::addToZero void   )  [inherited]
 

const PntInterface& osg::VectorInterface< Real32 , VecStorage2 >::addToZero void   )  const [inherited]
 

VectorInterface& osg::VectorInterface< Real32 , VecStorage2 >::subZero void   )  [inherited]
 

Reimplemented from osg::PointInterface< Real32, VecStorage2 >.

const VectorInterface& osg::VectorInterface< Real32 , VecStorage2 >::subZero void   )  const [inherited]
 

Reimplemented from osg::PointInterface< Real32, VecStorage2 >.

* VectorInterface osg::VectorInterface< Real32 , VecStorage2 >::operator- const VectorInterface< Real32, VecStorage2 > &  vec  )  const [inherited]
 

VectorInterface osg::VectorInterface< Real32 , VecStorage2 >::operator- void   )  const [inherited]
 

VecInterface osg::PointInterface< Real32 , VecStorage2 >::operator- const PointInterface< Real32, VecStorage2 > &  vec  )  const [inherited]
 

PointInterface osg::PointInterface< Real32 , VecStorage2 >::operator- const VecInterface vec  )  const [inherited]
 

PointInterface osg::PointInterface< Real32 , VecStorage2 >::operator- void   )  [inherited]
 

VectorInterface osg::VectorInterface< Real32 , VecStorage2 >::operator+ const VectorInterface< Real32, VecStorage2 > &  vec  )  const [inherited]
 

PointInterface osg::PointInterface< Real32 , VecStorage2 >::operator+ const VecInterface vec  )  const [inherited]
 

* bool osg::VectorInterface< Real32 , VecStorage2 >::operator< const VectorInterface< Real32, VecStorage2 > &  other  )  const [inherited]
 

* bool osg::PointInterface< Real32 , VecStorage2 >::operator< const PointInterface< Real32, VecStorage2 > &  other  )  const [inherited]
 

bool osg::VectorInterface< Real32 , VecStorage2 >::operator== const VectorInterface< Real32, VecStorage2 > &  other  )  const [inherited]
 

bool osg::PointInterface< Real32 , VecStorage2 >::operator== const PointInterface< Real32, VecStorage2 > &  other  )  const [inherited]
 

bool osg::VectorInterface< Real32 , VecStorage2 >::operator!= const VectorInterface< Real32, VecStorage2 > &  other  )  const [inherited]
 

bool osg::PointInterface< Real32 , VecStorage2 >::operator!= const PointInterface< Real32, VecStorage2 > &  other  )  const [inherited]
 

* osg::PointInterface< Real32 , VecStorage2 >::PointInterface void   )  [inherited]
 

osg::PointInterface< Real32 , VecStorage2 >::PointInterface const Real32 pVals  )  [explicit, inherited]
 

Be shure the array size at least as large as the vector size.

osg::PointInterface< Real32 , VecStorage2 >::PointInterface Real32 pVals  )  [explicit, inherited]
 

Be shure the array size at least as large as the vector size.

osg::PointInterface< Real32 , VecStorage2 >::PointInterface const VectorT &  vec  )  [inline, explicit, inherited]
 

Definition at line 319 of file OSGVector.h.

00320     {
00321         if(Self::_iSize <= VectorT::_iSize)
00322         {
00323             for(UInt32 i = 0; i < Self::_iSize; i++)
00324             {
00325                 Self::_values[i] = vec.getValues()[i];
00326             }
00327         }
00328         else
00329         {
00330             UInt32 i;
00331             for(i = 0; i < VectorT::_iSize; i++)
00332             {
00333                 Self::_values[i] = vec.getValues()[i];
00334             }
00335             for(i = VectorT::_iSize; i < Self::_iSize; i++)
00336             {
00337                 Self::_values[i] = TypeTraits<ValueTypeT>::getZeroElement();
00338             }
00339         }
00340     }

osg::PointInterface< Real32 , VecStorage2 >::PointInterface const PointInterface< Real32, VecStorage2 > &  source  )  [inherited]
 

osg::PointInterface< Real32 , VecStorage2 >::PointInterface const Real32   rVal1,
const Real32   rVal2
[inherited]
 

osg::PointInterface< Real32 , VecStorage2 >::PointInterface const Real32   rVal1,
const Real32   rVal2,
const Real32   rVal3
[inherited]
 

osg::PointInterface< Real32 , VecStorage2 >::PointInterface const Real32   rVal1,
const Real32   rVal2,
const Real32   rVal3,
const Real32   rVal4
[inherited]
 

* void osg::PointInterface< Real32 , VecStorage2 >::setNull void   )  [inherited]
 

void osg::PointInterface< Real32 , VecStorage2 >::setValue const PointInterface< Real32, VecStorage2 > &  vec  )  [inherited]
 

void osg::PointInterface< Real32 , VecStorage2 >::setValue const VectorT &  vec  )  [inline, inherited]
 

Definition at line 393 of file OSGVector.h.

00394     {
00395         for(UInt32   i = 0;
00396                      i < (Self::_iSize < VectorT::_iSize ? 
00397                           Self::_iSize : VectorT::_iSize);
00398                    ++i)
00399         {
00400             Self::_values[i] = vec.getValues()[i];
00401         }
00402     }

void osg::PointInterface< Real32 , VecStorage2 >::setValue const Real32 pVals  )  [inherited]
 

void osg::PointInterface< Real32 , VecStorage2 >::setValue Real32 pVals  )  [inherited]
 

void osg::PointInterface< Real32 , VecStorage2 >::setValue const Char8 szString  )  [inherited]
 

void osg::PointInterface< Real32 , VecStorage2 >::setValue Char8 szString  )  [inherited]
 

void osg::PointInterface< Real32 , VecStorage2 >::setValueFromCString const Char8 szString  )  [inherited]
 

void osg::PointInterface< Real32 , VecStorage2 >::setValueFromCString Char8 szString  )  [inherited]
 

* Real32 * osg::PointInterface< Real32 , VecStorage2 >::getValues void   )  [inherited]
 

const Real32 * osg::PointInterface< Real32 , VecStorage2 >::getValues void   )  const [inherited]
 

* bool osg::PointInterface< Real32 , VecStorage2 >::isZero void   )  const [inherited]
 

void osg::PointInterface< Real32 , VecStorage2 >::negate void   )  [inherited]
 

bool osg::PointInterface< Real32 , VecStorage2 >::equals const PointInterface< Real32, VecStorage2 > &  vec,
const Real32   tolerance
const [inherited]
 

RealReturnType osg::PointInterface< Real32 , VecStorage2 >::dist const PointInterface< Real32, VecStorage2 > &  vec  )  const [inherited]
 

RealReturnType osg::PointInterface< Real32 , VecStorage2 >::dist2 const PointInterface< Real32, VecStorage2 > &  vec  )  const [inherited]
 

RealReturnType osg::PointInterface< Real32 , VecStorage2 >::maxValue void   )  const [inherited]
 

* void osg::PointInterface< Real32 , VecStorage2 >::operator *= const Real32   val  )  [inherited]
 

void osg::PointInterface< Real32 , VecStorage2 >::operator/= const Real32   val  )  [inherited]