HiveMind
BittyBuzzMathFunctions.h
Go to the documentation of this file.
1 #ifndef __BITTYBUZZMATHFUNCTIONS_H_
2 #define __BITTYBUZZMATHFUNCTIONS_H_
3 
4 #include <bsp/Math.h>
5 
9 
15  const float E = Math::e;
16 
22  const float PI = Math::pi;
23 
32  void abs();
33 
42  void floori();
43 
52  void floorf();
53 
62  void ceili();
63 
72  void ceilf();
73 
83  void roundi();
84 
94  void roundf();
95 
104  void log();
105 
114  void log2();
115 
124  void log10();
125 
135  void pow();
136 
145  void exp();
146 
155  void sqrt();
156 
165  void sin();
166 
175  void cos();
176 
185  void tan();
186 
195  void asin();
196 
205  void acos();
206 
216  void atan();
217 
227  void min();
228 
239  void max();
240 
248  void rng_uniform();
249 
250 } // namespace BittyBuzzMathFunctions
251 
252 #endif // __BITTYBUZZMATHFUNCTIONS_H_
BittyBuzzMathFunctions::sqrt
void sqrt()
Calculates the square root Signature sqrt(arg1)
Definition: BittyBuzzMathFunctions.cpp:156
BittyBuzzMathFunctions::log
void log()
Calculates the natural logarithm (ln) Signature log(arg1)
Definition: BittyBuzzMathFunctions.cpp:91
BittyBuzzMathFunctions::min
void min()
Return the min Signature min(arg1, arg2)
Definition: BittyBuzzMathFunctions.cpp:251
BittyBuzzMathFunctions::ceili
void ceili()
Ceil a value Signature ceili(arg1)
Definition: BittyBuzzMathFunctions.cpp:63
BittyBuzzMathFunctions::max
void max()
Return the max Signature max(arg1, arg2)
Definition: BittyBuzzMathFunctions.cpp:267
BittyBuzzMathFunctions::log2
void log2()
Calculates the logarithm base 2 Signature log2(arg1)
Definition: BittyBuzzMathFunctions.cpp:105
BittyBuzzMathFunctions
Provides math function for the standard lib provided with the vm see IBittyBuzzLib....
Definition: BittyBuzzMathFunctions.h:8
BittyBuzzMathFunctions::tan
void tan()
Calculates the tengent Signature tan(arg1)
Definition: BittyBuzzMathFunctions.cpp:194
BittyBuzzMathFunctions::ceilf
void ceilf()
Ceil a value Signature ceilf(arg1)
Definition: BittyBuzzMathFunctions.cpp:70
BittyBuzzMathFunctions::asin
void asin()
Calculates the arc sine Signature asin(arg1)
Definition: BittyBuzzMathFunctions.cpp:206
BittyBuzzMathFunctions::abs
void abs()
Calculates the absolute value Signature abs(arg1)
Definition: BittyBuzzMathFunctions.cpp:33
BittyBuzzMathFunctions::exp
void exp()
Calculates e^x Signature exp(x)
Definition: BittyBuzzMathFunctions.cpp:144
Math.h
BittyBuzzMathFunctions::atan
void atan()
Calculates the arc cosine Signature atan(arg1)
Definition: BittyBuzzMathFunctions.cpp:232
BittyBuzzMathFunctions::log10
void log10()
Calculates the logarithm base 10 Signature log10(arg1)
Definition: BittyBuzzMathFunctions.cpp:117
BittyBuzzMathFunctions::acos
void acos()
Calculates the arc cosine Signature acos(arg1)
Definition: BittyBuzzMathFunctions.cpp:219
BittyBuzzMathFunctions::E
const float E
The euleur number as a constant note that since buzz approximates ln(e) may not equal 1.
Definition: BittyBuzzMathFunctions.h:15
BittyBuzzMathFunctions::floori
void floori()
Floor a value Signature floori(arg1)
Definition: BittyBuzzMathFunctions.cpp:49
BittyBuzzMathFunctions::roundf
void roundf()
Rounds a value Signature roundf(arg1)
Definition: BittyBuzzMathFunctions.cpp:84
BittyBuzzMathFunctions::roundi
void roundi()
Rounds a value Signature roundi(arg1)
Definition: BittyBuzzMathFunctions.cpp:77
Math::e
const float e
Definition: Math.cpp:6
BittyBuzzMathFunctions::pow
void pow()
Calculates the base raised to the power of the exponent. Signature pow(base, exponent)
Definition: BittyBuzzMathFunctions.cpp:130
BittyBuzzMathFunctions::PI
const float PI
The value of PI as a constant note that since it approximates cos(pi) may not equal 0.
Definition: BittyBuzzMathFunctions.h:22
BittyBuzzMathFunctions::rng_uniform
void rng_uniform()
Return a number with a uniform distribution Signature rng_uniform()
Definition: BittyBuzzMathFunctions.cpp:283
BittyBuzzMathFunctions::floorf
void floorf()
Floor a value Signature floorf(arg1)
Definition: BittyBuzzMathFunctions.cpp:56
BittyBuzzMathFunctions::cos
void cos()
Calculates the cosine Signature cos(arg1)
Definition: BittyBuzzMathFunctions.cpp:181
Math::pi
const float pi
Definition: Math.cpp:4
BittyBuzzMathFunctions::sin
void sin()
Calculates the sine Signature sin(arg1)
Definition: BittyBuzzMathFunctions.cpp:168