示例#1
0
    public void Scale()
    {
        for (int i = 0; i < count; i++)
        {
            float a, b, c;

            a = UnityEngine.Random.Range(-10F, 10F);
            b = UnityEngine.Random.Range(-10F, 10F);
            c = UnityEngine.Random.Range(-10F, 10F);

            Matrix4x4  value  = Matrix4x4.Scale(new Vector3(a, b, c));
            Matrix4x4d valued = Matrix4x4d.Scale(new Vector3d(a, b, c));

            Assert.True(Approximate(value, valued));
        }
    }