Switch everything to 15.16-bit precision fixeds, to allow more accurate unit vectors and angles.

This was SVN commit r7497.
This commit is contained in:
Ykkrosh
2010-05-02 20:32:37 +00:00
parent ab45b4c787
commit f33706bf8b
48 changed files with 479 additions and 263 deletions
@@ -113,10 +113,10 @@ public:
convert_to<const char*>("test", "\"test\"");
convert_to<const char*>(s1.c_str(), "\"t\"");
roundtrip<CFixed_23_8>(CFixed_23_8::FromInt(0), "0");
roundtrip<CFixed_23_8>(CFixed_23_8::FromInt(123), "123");
roundtrip<CFixed_23_8>(CFixed_23_8::FromInt(-123), "-123");
roundtrip<CFixed_23_8>(CFixed_23_8::FromDouble(123.25), "123.25");
roundtrip<fixed>(fixed::FromInt(0), "0");
roundtrip<fixed>(fixed::FromInt(123), "123");
roundtrip<fixed>(fixed::FromInt(-123), "-123");
roundtrip<fixed>(fixed::FromDouble(123.25), "123.25");
}
void test_integers()