| 7 | using Point3D = Vector::TVector3<int32_t>; |
| 8 | |
| 9 | TEST(VectorTest, fastSquareRoot) |
| 10 | { |
| 11 | ASSERT_EQ(Vector::fastSquareRoot(0), 0); |
| 12 | ASSERT_EQ(Vector::fastSquareRoot(256), 16); |
| 13 | ASSERT_EQ(Vector::fastSquareRoot(10000), 100); |
| 14 | ASSERT_EQ(Vector::fastSquareRoot(0xFFFFFFFF), 65519); // Note: Not very accurate... |
| 15 | ASSERT_EQ(Vector::fastSquareRoot(4095), 63); // Note: Not very accurate... |
| 16 | } |
| 17 | |
| 18 | // This test is ultimately the same as fastSquareRoot but more how we would acutally use it |
| 19 | TEST(VectorTest, distance) |
nothing calls this directly
no test coverage detected