public void TestReflectPoseKeepHandedness() { for (int i = 0; i < 30; ++i) { Plane plane = Mtu.RandomPlane(); TrTransform pose = Mtu.RandomTr(); CheckReflectPoseInvariants(plane, pose); } }
public void TestTransformRandomPlane() { for (int i = 0; i < 10; ++i) { TrTransform tr = MathTestUtils.RandomTr(); Plane p = MathTestUtils.RandomPlane(); Vector3 v = Random.onUnitSphere * Random.Range(.1f, 10); HelperCheckOrientationInvariant(p, v, tr); HelperCheckMirrorInvariant(p, v, tr); } }