ALMaSS Rabbit ODdox
1.00
The rabbit model description following ODdox protocol
|
ALMaSS_MathFuncs constructor. More...
#include <Misc.h>
Public Member Functions | |
ALMaSS_MathFuncs () | |
ALMaSS_MathFuncs constructor. More... | |
virtual | ~ALMaSS_MathFuncs () |
ALMaSS_MathFuncs deconstructor. More... | |
int | CalcDistPythagoras (int a_x, int a_y, int a_x1, int a_y1) |
Calculate distance using Pythagoras. More... | |
int | CalcDistPythagorasApprox (int a_x, int a_y, int a_x1, int a_y1) |
Calculate distance using the Pythagoras approximation. More... | |
ALMaSS_MathFuncs constructor.
|
inline |
ALMaSS_MathFuncs constructor.
This class is designed to hold general math functions frequently used in the ALMaSS code. For example distance calculations using either Pythagoras or the approximation of Pythagoras
|
inlinevirtual |
ALMaSS_MathFuncs deconstructor.
Definition at line 39 of file Misc.h.
References CalcDistPythagoras(), and CalcDistPythagorasApprox().
int ALMaSS_MathFuncs::CalcDistPythagoras | ( | int | a_x, |
int | a_y, | ||
int | a_x1, | ||
int | a_y1 | ||
) |
Calculate distance using Pythagoras.
Definition at line 42 of file misc.cpp.
Referenced by ~ALMaSS_MathFuncs().
int ALMaSS_MathFuncs::CalcDistPythagorasApprox | ( | int | a_x, |
int | a_y, | ||
int | a_x1, | ||
int | a_y1 | ||
) |
Calculate distance using the Pythagoras approximation.
The approximation to Pythagorus is accurate to around 6%
Definition at line 49 of file misc.cpp.
Referenced by ~ALMaSS_MathFuncs().