| 40 | ASSERT_V3_NEAR(expected.GetScale(), actual.GetScale()); |
| 41 | |
| 42 | TEST(dmTransform, Apply) |
| 43 | { |
| 44 | TransformS1 ts1(Vector3(1.0f, 0.0f, 0.0f), |
| 45 | Quat::rotationZ((float) M_PI_2), |
| 46 | 2.0f); |
| 47 | |
| 48 | ASSERT_V3_NEAR(Vector3(0.0f, 2.0f, 0.0f), dmTransform::Apply(ts1, Vector3(1.0f, 0.0f, 0.0f))); |
| 49 | ASSERT_V3_NEAR(Point3(1.0f, 2.0f, 0.0f), dmTransform::Apply(ts1, Point3(1.0f, 0.0f, 0.0f))); |
| 50 | |
| 51 | Transform t(Vector3(1.0f, 0.0f, 0.0f), |
| 52 | Quat::rotationZ((float) M_PI_2), |
| 53 | Vector3(2.0f, 2.0f, 2.0f)); |
| 54 | |
| 55 | ASSERT_V3_NEAR(Vector3(0.0f, 2.0f, 0.0f), dmTransform::Apply(t, Vector3(1.0f, 0.0f, 0.0f))); |
| 56 | ASSERT_V3_NEAR(Point3(1.0f, 2.0f, 0.0f), dmTransform::Apply(t, Point3(1.0f, 0.0f, 0.0f))); |
| 57 | } |
| 58 | |
| 59 | TEST(dmTransform, Multiply) |
| 60 | { |
nothing calls this directly
no test coverage detected