]> git.mxchange.org Git - simgear.git/blob - Lib/Math/inttest.cxx
Fixed an IRIX warning message where an inline function is referenced
[simgear.git] / Lib / Math / inttest.cxx
1 #include <stdio.h>
2 #include <Debug/fg_debug.h>
3
4 #include "interpolater.hxx"
5
6 main() {
7     fgINTERPTABLE test("test.table");
8
9     fgInitDebug();
10
11     printf("-1.0 = %.2f\n", test.interpolate(-1.0));
12     printf("0.0 = %.2f\n", test.interpolate(0.0));
13     printf("2.9 = %.2f\n", test.interpolate(2.9));
14     printf("3.0 = %.2f\n", test.interpolate(3.0));
15     printf("3.5 = %.2f\n", test.interpolate(3.5));
16     printf("4.0 = %.2f\n", test.interpolate(4.0));
17     printf("4.5 = %.2f\n", test.interpolate(4.5));
18     printf("5.2 = %.2f\n", test.interpolate(5.2));
19     printf("8.0 = %.2f\n", test.interpolate(8.0));
20     printf("8.5 = %.2f\n", test.interpolate(8.5));
21     printf("9.0 = %.2f\n", test.interpolate(9.0));
22     printf("10.0 = %.2f\n", test.interpolate(10.0));
23 }