X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FYASim%2FMath.hpp;h=e729f6d72dd0200f620906e432938a772c91a8bd;hb=d66903e9ad63b91182ccc25d9bb82f18f8dd98b6;hp=4189cd68558aab4c34aae1ad96e616e1e4f5142e;hpb=5333f82eb1c98a9dac366a36e78f47f903f2681d;p=flightgear.git diff --git a/src/FDM/YASim/Math.hpp b/src/FDM/YASim/Math.hpp index 4189cd685..e729f6d72 100644 --- a/src/FDM/YASim/Math.hpp +++ b/src/FDM/YASim/Math.hpp @@ -12,7 +12,6 @@ public: // Simple wrappers around library routines static float abs(float f); static float sqrt(float f); - static float sqr(float f); static float ceil(float f); static float sin(float f); static float cos(float f); @@ -21,6 +20,8 @@ public: static float atan2(float y, float x); static float asin(float f); static float acos(float f); + static float exp(float f); + static float sqr(float f) {return f*f;} // Takes two args and runs afoul of the Koenig rules. static float pow(double base, double exp); @@ -33,6 +34,7 @@ public: static double cos(double f); static double tan(double f); static double atan2(double y, double x); + static double floor(double x); // Some 3D vector stuff. In all cases, it is permissible for the // "out" vector to be the same as one of the inputs.