Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OVR::Angle< T > Class Template Reference

#include "OVR_Math.h"

Collaboration diagram for OVR::Angle< T >:
Collaboration graph

Public Types

enum  AngularUnits { Radians = 0, Degrees = 1 }
 

Public Member Functions

 Angle ()
 
 Angle (T a_, AngularUnits u=Radians)
 
Get (AngularUnits u=Radians) const
 
void Set (const T &x, AngularUnits u=Radians)
 
int Sign () const
 
Abs () const
 
bool operator== (const Angle &b) const
 
bool operator!= (const Angle &b) const
 
Angleoperator+= (const Angle &b)
 
Angleoperator+= (const T &x)
 
Angle operator+ (const Angle &b) const
 
Angle operator+ (const T &x) const
 
Angleoperator-= (const Angle &b)
 
Angleoperator-= (const T &x)
 
Angle operator- (const Angle &b) const
 
Angle operator- (const T &x) const
 
Distance (const Angle &b)
 

Private Member Functions

void FastFixRange ()
 
void FixRange ()
 

Private Attributes

a
 

Detailed Description

template<class T>
class OVR::Angle< T >

Definition at line 2406 of file OVR_Math.h.

Member Enumeration Documentation

template<class T >
enum OVR::Angle::AngularUnits
Enumerator
Radians 
Degrees 

Definition at line 2409 of file OVR_Math.h.

Constructor & Destructor Documentation

template<class T >
OVR::Angle< T >::Angle ( )
inline

Definition at line 2415 of file OVR_Math.h.

template<class T >
OVR::Angle< T >::Angle ( a_,
AngularUnits  u = Radians 
)
inline

Definition at line 2418 of file OVR_Math.h.

Member Function Documentation

template<class T >
T OVR::Angle< T >::Abs ( ) const
inline

Definition at line 2423 of file OVR_Math.h.

template<class T >
T OVR::Angle< T >::Distance ( const Angle< T > &  b)
inline

Definition at line 2443 of file OVR_Math.h.

template<class T >
void OVR::Angle< T >::FastFixRange ( )
inlineprivate

Definition at line 2451 of file OVR_Math.h.

template<class T >
void OVR::Angle< T >::FixRange ( )
inlineprivate

Definition at line 2460 of file OVR_Math.h.

template<class T >
T OVR::Angle< T >::Get ( AngularUnits  u = Radians) const
inline

Definition at line 2420 of file OVR_Math.h.

template<class T >
bool OVR::Angle< T >::operator!= ( const Angle< T > &  b) const
inline

Definition at line 2426 of file OVR_Math.h.

template<class T >
Angle OVR::Angle< T >::operator+ ( const Angle< T > &  b) const
inline

Definition at line 2436 of file OVR_Math.h.

template<class T >
Angle OVR::Angle< T >::operator+ ( const T &  x) const
inline

Definition at line 2437 of file OVR_Math.h.

template<class T >
Angle& OVR::Angle< T >::operator+= ( const Angle< T > &  b)
inline

Definition at line 2434 of file OVR_Math.h.

template<class T >
Angle& OVR::Angle< T >::operator+= ( const T &  x)
inline

Definition at line 2435 of file OVR_Math.h.

template<class T >
Angle OVR::Angle< T >::operator- ( const Angle< T > &  b) const
inline

Definition at line 2440 of file OVR_Math.h.

template<class T >
Angle OVR::Angle< T >::operator- ( const T &  x) const
inline

Definition at line 2441 of file OVR_Math.h.

template<class T >
Angle& OVR::Angle< T >::operator-= ( const Angle< T > &  b)
inline

Definition at line 2438 of file OVR_Math.h.

template<class T >
Angle& OVR::Angle< T >::operator-= ( const T &  x)
inline

Definition at line 2439 of file OVR_Math.h.

template<class T >
bool OVR::Angle< T >::operator== ( const Angle< T > &  b) const
inline

Definition at line 2425 of file OVR_Math.h.

template<class T >
void OVR::Angle< T >::Set ( const T &  x,
AngularUnits  u = Radians 
)
inline

Definition at line 2421 of file OVR_Math.h.

template<class T >
int OVR::Angle< T >::Sign ( ) const
inline

Definition at line 2422 of file OVR_Math.h.

Field Documentation

template<class T >
T OVR::Angle< T >::a
private

Definition at line 2448 of file OVR_Math.h.


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