YAPOG  0.0.1
Yet Another Pokemon Online Game
yap::MathHelper Class Reference

#include <MathHelper.hpp>

Collaboration diagram for yap::MathHelper:

List of all members.

Static Public Member Functions

template<typename T >
static T Max (const T &left, const T &right)
template<typename T >
static T Min (const T &left, const T &right)
template<typename T >
static T Floor (const T &number)
template<typename T >
static T Clamp (const T &value, const T &min, const T &max)
template<typename T1 , typename T2 >
static int Pow (const T1 &number, const T2 &pow)
template<typename T1 , typename T2 >
static T1 Sqrt (const T1 &number, const T2 &pow)
template<typename T >
static T Abs (const T &value)
template<typename T >
static T Cos (const T &angle)
template<typename T >
static T Sin (const T &angle)

Private Member Functions

 DISALLOW_COPY (MathHelper)
 MathHelper ()
 ~MathHelper ()

Detailed Description

Definition at line 8 of file MathHelper.hpp.


Constructor & Destructor Documentation

yap::MathHelper::MathHelper ( )
private
yap::MathHelper::~MathHelper ( )
private

Member Function Documentation

template<typename T >
T yap::MathHelper::Abs ( const T &  value)
static

Definition at line 50 of file MathHelper.hxx.

Here is the caller graph for this function:

template<typename T >
T yap::MathHelper::Clamp ( const T &  value,
const T &  min,
const T &  max 
)
static

Definition at line 21 of file MathHelper.hxx.

Here is the caller graph for this function:

template<typename T >
T yap::MathHelper::Cos ( const T &  angle)
static

Definition at line 56 of file MathHelper.hxx.

yap::MathHelper::DISALLOW_COPY ( MathHelper  )
private
template<typename T >
T yap::MathHelper::Floor ( const T &  number)
static

Definition at line 27 of file MathHelper.hxx.

Here is the caller graph for this function:

template<typename T >
T yap::MathHelper::Max ( const T &  left,
const T &  right 
)
static

Definition at line 9 of file MathHelper.hxx.

Here is the caller graph for this function:

template<typename T >
T yap::MathHelper::Min ( const T &  left,
const T &  right 
)
static

Definition at line 15 of file MathHelper.hxx.

template<typename T1 , typename T2 >
int yap::MathHelper::Pow ( const T1 &  number,
const T2 &  pow 
)
static

Definition at line 33 of file MathHelper.hxx.

Here is the caller graph for this function:

template<typename T >
T yap::MathHelper::Sin ( const T &  angle)
static

Definition at line 62 of file MathHelper.hxx.

template<typename T1 , typename T2 >
T1 yap::MathHelper::Sqrt ( const T1 &  number,
const T2 &  pow 
)
static

Definition at line 39 of file MathHelper.hxx.

Here is the caller graph for this function:


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