public void float2x2_operator_greater_equal_wide_wide()
        {
            float2x2 a0 = float2x2(-507.9286f, 504.4975f);
            float2x2 b0 = float2x2(-81.3465f, 297.666138f);
            bool2x2  r0 = bool2x2(false, true);

            TestUtils.AreEqual(a0 >= b0, r0);

            float2x2 a1 = float2x2(-385.4345f, -262.323425f);
            float2x2 b1 = float2x2(171.06543f, -431.038055f);
            bool2x2  r1 = bool2x2(false, true);

            TestUtils.AreEqual(a1 >= b1, r1);

            float2x2 a2 = float2x2(-37.5509338f, -111.595276f);
            float2x2 b2 = float2x2(-6.85907f, 319.7257f);
            bool2x2  r2 = bool2x2(false, false);

            TestUtils.AreEqual(a2 >= b2, r2);

            float2x2 a3 = float2x2(-463.702026f, 387.448853f);
            float2x2 b3 = float2x2(254.079163f, 396.5724f);
            bool2x2  r3 = bool2x2(false, false);

            TestUtils.AreEqual(a3 >= b3, r3);
        }
Exemplo n.º 2
0
        public void bool2x2_operator_bitwise_or_wide_scalar()
        {
            bool2x2 a0 = bool2x2(true, true);
            bool    b0 = (true);
            bool2x2 r0 = bool2x2(true, true);

            TestUtils.AreEqual(a0 | b0, r0);

            bool2x2 a1 = bool2x2(false, true);
            bool    b1 = (true);
            bool2x2 r1 = bool2x2(true, true);

            TestUtils.AreEqual(a1 | b1, r1);

            bool2x2 a2 = bool2x2(true, false);
            bool    b2 = (true);
            bool2x2 r2 = bool2x2(true, true);

            TestUtils.AreEqual(a2 | b2, r2);

            bool2x2 a3 = bool2x2(true, false);
            bool    b3 = (false);
            bool2x2 r3 = bool2x2(true, false);

            TestUtils.AreEqual(a3 | b3, r3);
        }
Exemplo n.º 3
0
        public void bool2x2_operator_equal_scalar_wide()
        {
            bool    a0 = (false);
            bool2x2 b0 = bool2x2(true, false);
            bool2x2 r0 = bool2x2(false, true);

            TestUtils.AreEqual(a0 == b0, r0);

            bool    a1 = (true);
            bool2x2 b1 = bool2x2(false, false);
            bool2x2 r1 = bool2x2(false, false);

            TestUtils.AreEqual(a1 == b1, r1);

            bool    a2 = (true);
            bool2x2 b2 = bool2x2(false, false);
            bool2x2 r2 = bool2x2(false, false);

            TestUtils.AreEqual(a2 == b2, r2);

            bool    a3 = (true);
            bool2x2 b3 = bool2x2(false, true);
            bool2x2 r3 = bool2x2(false, true);

            TestUtils.AreEqual(a3 == b3, r3);
        }
Exemplo n.º 4
0
        public static void float2x2_operator_greater_equal_scalar_wide()
        {
            float    a0 = (215.435364f);
            float2x2 b0 = float2x2(204.802979f, -101.104034f, -122.055023f, -70.45615f);
            bool2x2  r0 = bool2x2(true, true, true, true);

            TestUtils.AreEqual(a0 >= b0, r0);

            float    a1 = (-239.62027f);
            float2x2 b1 = float2x2(-185.992737f, -455.612579f, 276.665833f, 79.39917f);
            bool2x2  r1 = bool2x2(false, true, false, false);

            TestUtils.AreEqual(a1 >= b1, r1);

            float    a2 = (416.420532f);
            float2x2 b2 = float2x2(379.2735f, -439.5147f, 67.14099f, -74.56064f);
            bool2x2  r2 = bool2x2(true, true, true, true);

            TestUtils.AreEqual(a2 >= b2, r2);

            float    a3 = (-367.256348f);
            float2x2 b3 = float2x2(494.950745f, -61.2355347f, -429.170258f, -213.824677f);
            bool2x2  r3 = bool2x2(false, false, true, false);

            TestUtils.AreEqual(a3 >= b3, r3);
        }
Exemplo n.º 5
0
        public static void float2x2_operator_equal_scalar_wide()
        {
            float    a0 = (36.38391f);
            float2x2 b0 = float2x2(-400.4892f, -71.2868347f, 156.978088f, -225.238739f);
            bool2x2  r0 = bool2x2(false, false, false, false);

            TestUtils.AreEqual(a0 == b0, r0);

            float    a1 = (499.141785f);
            float2x2 b1 = float2x2(-211.979919f, 428.311951f, -489.501343f, -5.691559f);
            bool2x2  r1 = bool2x2(false, false, false, false);

            TestUtils.AreEqual(a1 == b1, r1);

            float    a2 = (-30.8659363f);
            float2x2 b2 = float2x2(-362.9831f, 184.503174f, -160.470612f, 316.668823f);
            bool2x2  r2 = bool2x2(false, false, false, false);

            TestUtils.AreEqual(a2 == b2, r2);

            float    a3 = (390.369263f);
            float2x2 b3 = float2x2(505.1051f, -294.6487f, 443.1991f, 96.5592651f);
            bool2x2  r3 = bool2x2(false, false, false, false);

            TestUtils.AreEqual(a3 == b3, r3);
        }
Exemplo n.º 6
0
        public static void float2x2_operator_less_equal_wide_scalar()
        {
            float2x2 a0 = float2x2(309.192444f, 69.67377f, -101.724182f, -315.9724f);
            float    b0 = (292.924255f);
            bool2x2  r0 = bool2x2(false, true, true, true);

            TestUtils.AreEqual(a0 <= b0, r0);

            float2x2 a1 = float2x2(-346.011047f, -410.870056f, -483.902649f, 183.821167f);
            float    b1 = (424.15387f);
            bool2x2  r1 = bool2x2(true, true, true, true);

            TestUtils.AreEqual(a1 <= b1, r1);

            float2x2 a2 = float2x2(320.4425f, -386.801758f, -182.938812f, 349.250122f);
            float    b2 = (-257.870056f);
            bool2x2  r2 = bool2x2(false, true, false, false);

            TestUtils.AreEqual(a2 <= b2, r2);

            float2x2 a3 = float2x2(485.311584f, 259.1515f, 450.130066f, -128.525543f);
            float    b3 = (373.5691f);
            bool2x2  r3 = bool2x2(false, true, false, true);

            TestUtils.AreEqual(a3 <= b3, r3);
        }
Exemplo n.º 7
0
        public static void float2x2_operator_greater_equal_wide_wide()
        {
            float2x2 a0 = float2x2(-386.5918f, -157.120789f, 391.015259f, -511.886871f);
            float2x2 b0 = float2x2(153.443f, 49.8924561f, 78.02582f, 138.813721f);
            bool2x2  r0 = bool2x2(false, false, true, false);

            TestUtils.AreEqual(a0 >= b0, r0);

            float2x2 a1 = float2x2(-5.42202759f, 287.645264f, -122.535187f, 7.48144531f);
            float2x2 b1 = float2x2(-225.51059f, -339.3561f, -373.302063f, 364.9359f);
            bool2x2  r1 = bool2x2(true, true, true, false);

            TestUtils.AreEqual(a1 >= b1, r1);

            float2x2 a2 = float2x2(152.946411f, 48.9862061f, 57.3381348f, 300.4649f);
            float2x2 b2 = float2x2(-322.7154f, 125.47821f, -25.77658f, 297.518921f);
            bool2x2  r2 = bool2x2(true, false, true, true);

            TestUtils.AreEqual(a2 >= b2, r2);

            float2x2 a3 = float2x2(349.25708f, 85.7496948f, -230.953308f, 418.711243f);
            float2x2 b3 = float2x2(73.22235f, 462.783752f, 393.191345f, -95.0014343f);
            bool2x2  r3 = bool2x2(true, false, false, true);

            TestUtils.AreEqual(a3 >= b3, r3);
        }
Exemplo n.º 8
0
        public static void float2x2_operator_not_equal_wide_wide()
        {
            float2x2 a0 = float2x2(279.994141f, -43.34201f, -465.724731f, 317.466553f);
            float2x2 b0 = float2x2(-460.9121f, -476.009033f, 468.1364f, -341.012543f);
            bool2x2  r0 = bool2x2(true, true, true, true);

            TestUtils.AreEqual(a0 != b0, r0);

            float2x2 a1 = float2x2(85.7149658f, 360.8905f, 366.081543f, 154.542847f);
            float2x2 b1 = float2x2(-62.65805f, -458.801666f, -457.730225f, -59.5232544f);
            bool2x2  r1 = bool2x2(true, true, true, true);

            TestUtils.AreEqual(a1 != b1, r1);

            float2x2 a2 = float2x2(332.4262f, 397.11322f, -431.374969f, 489.0108f);
            float2x2 b2 = float2x2(3.024231f, 155.812744f, -19.8399048f, -6.01693726f);
            bool2x2  r2 = bool2x2(true, true, true, true);

            TestUtils.AreEqual(a2 != b2, r2);

            float2x2 a3 = float2x2(398.4336f, -489.817932f, 171.4049f, -67.82968f);
            float2x2 b3 = float2x2(-406.207916f, -102.420715f, -40.362915f, 452.6754f);
            bool2x2  r3 = bool2x2(true, true, true, true);

            TestUtils.AreEqual(a3 != b3, r3);
        }
Exemplo n.º 9
0
        public static void float2x2_operator_not_equal_wide_scalar()
        {
            float2x2 a0 = float2x2(-155.4411f, -19.4266052f, 174.633057f, 507.920715f);
            float    b0 = (-393.413544f);
            bool2x2  r0 = bool2x2(true, true, true, true);

            TestUtils.AreEqual(a0 != b0, r0);

            float2x2 a1 = float2x2(59.177063f, -58.92328f, -398.176849f, 492.20105f);
            float    b1 = (171.151489f);
            bool2x2  r1 = bool2x2(true, true, true, true);

            TestUtils.AreEqual(a1 != b1, r1);

            float2x2 a2 = float2x2(-165.241516f, -380.243256f, 501.899048f, -134.345459f);
            float    b2 = (270.341f);
            bool2x2  r2 = bool2x2(true, true, true, true);

            TestUtils.AreEqual(a2 != b2, r2);

            float2x2 a3 = float2x2(458.400452f, 161.459961f, 261.514221f, -145.6124f);
            float    b3 = (46.7709961f);
            bool2x2  r3 = bool2x2(true, true, true, true);

            TestUtils.AreEqual(a3 != b3, r3);
        }
Exemplo n.º 10
0
        public void float2x2_operator_equal_wide_wide()
        {
            float2x2 a0 = float2x2(492.1576f, -495.206329f);
            float2x2 b0 = float2x2(192.568787f, -235.611023f);
            bool2x2  r0 = bool2x2(false, false);

            TestUtils.AreEqual(a0 == b0, r0);

            float2x2 a1 = float2x2(227.457642f, -147.374054f);
            float2x2 b1 = float2x2(-254.043121f, -412.624725f);
            bool2x2  r1 = bool2x2(false, false);

            TestUtils.AreEqual(a1 == b1, r1);

            float2x2 a2 = float2x2(-222.682f, 64.09375f);
            float2x2 b2 = float2x2(471.9048f, -6.47277832f);
            bool2x2  r2 = bool2x2(false, false);

            TestUtils.AreEqual(a2 == b2, r2);

            float2x2 a3 = float2x2(-23.8904114f, -16.8197327f);
            float2x2 b3 = float2x2(-339.102356f, 488.187561f);
            bool2x2  r3 = bool2x2(false, false);

            TestUtils.AreEqual(a3 == b3, r3);
        }
Exemplo n.º 11
0
        public void float2x2_operator_not_equal_wide_wide()
        {
            float2x2 a0 = float2x2(430.842529f, 104.69f);
            float2x2 b0 = float2x2(210.024719f, -55.20334f);
            bool2x2  r0 = bool2x2(true, true);

            TestUtils.AreEqual(a0 != b0, r0);

            float2x2 a1 = float2x2(225.802429f, -310.5702f);
            float2x2 b1 = float2x2(-269.925354f, -234.546722f);
            bool2x2  r1 = bool2x2(true, true);

            TestUtils.AreEqual(a1 != b1, r1);

            float2x2 a2 = float2x2(-418.619446f, 304.128174f);
            float2x2 b2 = float2x2(25.91742f, -63.72699f);
            bool2x2  r2 = bool2x2(true, true);

            TestUtils.AreEqual(a2 != b2, r2);

            float2x2 a3 = float2x2(-509.3268f, -160.538086f);
            float2x2 b3 = float2x2(-484.5537f, -425.3336f);
            bool2x2  r3 = bool2x2(true, true);

            TestUtils.AreEqual(a3 != b3, r3);
        }
Exemplo n.º 12
0
        public void float2x2_operator_equal_scalar_wide()
        {
            float    a0 = (-253.397278f);
            float2x2 b0 = float2x2(19.95221f, -185.791992f);
            bool2x2  r0 = bool2x2(false, false);

            TestUtils.AreEqual(a0 == b0, r0);

            float    a1 = (407.8136f);
            float2x2 b1 = float2x2(-87.2767f, -206.274689f);
            bool2x2  r1 = bool2x2(false, false);

            TestUtils.AreEqual(a1 == b1, r1);

            float    a2 = (160.503113f);
            float2x2 b2 = float2x2(-274.7708f, -2.63153076f);
            bool2x2  r2 = bool2x2(false, false);

            TestUtils.AreEqual(a2 == b2, r2);

            float    a3 = (448.354553f);
            float2x2 b3 = float2x2(-410.035248f, 247.329041f);
            bool2x2  r3 = bool2x2(false, false);

            TestUtils.AreEqual(a3 == b3, r3);
        }
Exemplo n.º 13
0
        public void float2x2_operator_greater_equal_scalar_wide()
        {
            float    a0 = (374.827026f);
            float2x2 b0 = float2x2(-1.60977173f, 338.615234f);
            bool2x2  r0 = bool2x2(true, true);

            TestUtils.AreEqual(a0 >= b0, r0);

            float    a1 = (-116.1814f);
            float2x2 b1 = float2x2(-332.157318f, -355.97937f);
            bool2x2  r1 = bool2x2(true, true);

            TestUtils.AreEqual(a1 >= b1, r1);

            float    a2 = (-468.901428f);
            float2x2 b2 = float2x2(38.579895f, -332.347534f);
            bool2x2  r2 = bool2x2(false, false);

            TestUtils.AreEqual(a2 >= b2, r2);

            float    a3 = (2.89013672f);
            float2x2 b3 = float2x2(467.777771f, 121.406372f);
            bool2x2  r3 = bool2x2(false, false);

            TestUtils.AreEqual(a3 >= b3, r3);
        }
Exemplo n.º 14
0
        public void float2x2_operator_greater_equal_wide_scalar()
        {
            float2x2 a0 = float2x2(465.152161f, -424.886078f);
            float    b0 = (-5.599884f);
            bool2x2  r0 = bool2x2(true, false);

            TestUtils.AreEqual(a0 >= b0, r0);

            float2x2 a1 = float2x2(-209.2211f, -302.2691f);
            float    b1 = (58.7798462f);
            bool2x2  r1 = bool2x2(false, false);

            TestUtils.AreEqual(a1 >= b1, r1);

            float2x2 a2 = float2x2(140.12561f, -344.559967f);
            float    b2 = (16.3533936f);
            bool2x2  r2 = bool2x2(true, false);

            TestUtils.AreEqual(a2 >= b2, r2);

            float2x2 a3 = float2x2(393.278076f, 441.011536f);
            float    b3 = (-315.701538f);
            bool2x2  r3 = bool2x2(true, true);

            TestUtils.AreEqual(a3 >= b3, r3);
        }
Exemplo n.º 15
0
        public static void float2x2_operator_equal_wide_wide()
        {
            float2x2 a0 = float2x2(-135.18924f, -49.0941162f, 169.129822f, 240.8053f);
            float2x2 b0 = float2x2(-220.014648f, 66.98004f, 499.2016f, -371.1131f);
            bool2x2  r0 = bool2x2(false, false, false, false);

            TestUtils.AreEqual(a0 == b0, r0);

            float2x2 a1 = float2x2(314.7392f, 442.393f, 177.924438f, 335.5334f);
            float2x2 b1 = float2x2(208.448669f, 390.8037f, -72.44382f, 362.97644f);
            bool2x2  r1 = bool2x2(false, false, false, false);

            TestUtils.AreEqual(a1 == b1, r1);

            float2x2 a2 = float2x2(168.15448f, 350.729553f, 367.178467f, 46.9414673f);
            float2x2 b2 = float2x2(194.678345f, 471.644836f, -404.044678f, -144.696747f);
            bool2x2  r2 = bool2x2(false, false, false, false);

            TestUtils.AreEqual(a2 == b2, r2);

            float2x2 a3 = float2x2(188.76416f, -97.2113953f, -293.320984f, -234.822937f);
            float2x2 b3 = float2x2(-494.446655f, -252.970367f, 234.417114f, 398.724f);
            bool2x2  r3 = bool2x2(false, false, false, false);

            TestUtils.AreEqual(a3 == b3, r3);
        }
Exemplo n.º 16
0
        public static void float2x2_operator_not_equal_scalar_wide()
        {
            float    a0 = (478.353149f);
            float2x2 b0 = float2x2(459.553223f, 436.453247f, -488.714172f, 392.767944f);
            bool2x2  r0 = bool2x2(true, true, true, true);

            TestUtils.AreEqual(a0 != b0, r0);

            float    a1 = (-266.736633f);
            float2x2 b1 = float2x2(338.557861f, -338.100128f, -152.314545f, -452.820679f);
            bool2x2  r1 = bool2x2(true, true, true, true);

            TestUtils.AreEqual(a1 != b1, r1);

            float    a2 = (209.439331f);
            float2x2 b2 = float2x2(50.10797f, 372.4344f, -488.0213f, 489.740784f);
            bool2x2  r2 = bool2x2(true, true, true, true);

            TestUtils.AreEqual(a2 != b2, r2);

            float    a3 = (270.4001f);
            float2x2 b3 = float2x2(-472.846771f, -286.850464f, -384.691864f, 443.423523f);
            bool2x2  r3 = bool2x2(true, true, true, true);

            TestUtils.AreEqual(a3 != b3, r3);
        }
Exemplo n.º 17
0
        public static void float2x2_operator_less_equal_wide_wide()
        {
            float2x2 a0 = float2x2(240.090515f, 462.213135f, 293.08252f, -427.870667f);
            float2x2 b0 = float2x2(-81.20383f, 493.637451f, -411.4721f, 99.16443f);
            bool2x2  r0 = bool2x2(false, true, false, true);

            TestUtils.AreEqual(a0 <= b0, r0);

            float2x2 a1 = float2x2(-405.5227f, 204.591919f, 294.6701f, -327.564453f);
            float2x2 b1 = float2x2(-295.6677f, -480.462555f, 74.41406f, 260.916138f);
            bool2x2  r1 = bool2x2(true, false, false, true);

            TestUtils.AreEqual(a1 <= b1, r1);

            float2x2 a2 = float2x2(-456.12326f, 282.30127f, 421.881165f, -311.71283f);
            float2x2 b2 = float2x2(306.173279f, 139.564819f, -505.752472f, -489.6268f);
            bool2x2  r2 = bool2x2(true, false, false, false);

            TestUtils.AreEqual(a2 <= b2, r2);

            float2x2 a3 = float2x2(84.5675049f, 447.244629f, -154.494354f, -424.364746f);
            float2x2 b3 = float2x2(-280.0326f, 303.1599f, 511.1902f, -104.659729f);
            bool2x2  r3 = bool2x2(false, false, true, true);

            TestUtils.AreEqual(a3 <= b3, r3);
        }
Exemplo n.º 18
0
        public static void float2x2_operator_less_wide_wide()
        {
            float2x2 a0 = float2x2(51.7102661f, -313.85556f, 283.047668f, 235.021912f);
            float2x2 b0 = float2x2(-261.835236f, -19.81073f, -149.25882f, 205.99823f);
            bool2x2  r0 = bool2x2(false, true, false, false);

            TestUtils.AreEqual(a0 < b0, r0);

            float2x2 a1 = float2x2(44.07837f, -207.255676f, 3.38293457f, -144.301331f);
            float2x2 b1 = float2x2(-306.024384f, 102.121704f, 231.906311f, 179.49884f);
            bool2x2  r1 = bool2x2(false, true, true, true);

            TestUtils.AreEqual(a1 < b1, r1);

            float2x2 a2 = float2x2(-69.3696f, -135.667969f, -194.787354f, -33.473877f);
            float2x2 b2 = float2x2(473.2249f, 15.8916626f, 270.049927f, 490.914f);
            bool2x2  r2 = bool2x2(true, true, true, true);

            TestUtils.AreEqual(a2 < b2, r2);

            float2x2 a3 = float2x2(-19.67508f, 423.237976f, -71.6983f, -501.886f);
            float2x2 b3 = float2x2(-185.734131f, 76.4331055f, 97.75232f, 419.300781f);
            bool2x2  r3 = bool2x2(false, false, true, true);

            TestUtils.AreEqual(a3 < b3, r3);
        }
Exemplo n.º 19
0
        public static void float2x2_operator_less_equal_scalar_wide()
        {
            float    a0 = (-511.152374f);
            float2x2 b0 = float2x2(51.1589966f, 340.443665f, 312.81427f, 354.1925f);
            bool2x2  r0 = bool2x2(true, true, true, true);

            TestUtils.AreEqual(a0 <= b0, r0);

            float    a1 = (136.396729f);
            float2x2 b1 = float2x2(-94.76788f, 288.5443f, 304.042847f, -148.618073f);
            bool2x2  r1 = bool2x2(false, true, true, false);

            TestUtils.AreEqual(a1 <= b1, r1);

            float    a2 = (-506.3001f);
            float2x2 b2 = float2x2(27.5812378f, 48.47113f, 104.883484f, -488.685852f);
            bool2x2  r2 = bool2x2(true, true, true, true);

            TestUtils.AreEqual(a2 <= b2, r2);

            float    a3 = (-480.435181f);
            float2x2 b3 = float2x2(421.936646f, 239.721069f, -101.018433f, -283.951477f);
            bool2x2  r3 = bool2x2(true, true, true, true);

            TestUtils.AreEqual(a3 <= b3, r3);
        }
Exemplo n.º 20
0
        public static void float2x2_operator_less_wide_scalar()
        {
            float2x2 a0 = float2x2(-221.869781f, -121.546478f, -97.5239258f, 479.8811f);
            float    b0 = (199.0675f);
            bool2x2  r0 = bool2x2(true, true, true, false);

            TestUtils.AreEqual(a0 < b0, r0);

            float2x2 a1 = float2x2(67.11902f, 282.9666f, 258.2791f, -111.413147f);
            float    b1 = (137.3288f);
            bool2x2  r1 = bool2x2(true, false, false, true);

            TestUtils.AreEqual(a1 < b1, r1);

            float2x2 a2 = float2x2(-288.081116f, -361.6429f, -68.0881958f, 12.7880249f);
            float    b2 = (82.6654053f);
            bool2x2  r2 = bool2x2(true, true, true, true);

            TestUtils.AreEqual(a2 < b2, r2);

            float2x2 a3 = float2x2(-66.703064f, 25.7277222f, 101.37085f, -330.442657f);
            float    b3 = (-78.76297f);
            bool2x2  r3 = bool2x2(false, false, false, true);

            TestUtils.AreEqual(a3 < b3, r3);
        }
Exemplo n.º 21
0
        public static void float2x2_operator_greater_equal_wide_scalar()
        {
            float2x2 a0 = float2x2(495.4574f, -14.3451233f, -463.4748f, 217.517517f);
            float    b0 = (189.205139f);
            bool2x2  r0 = bool2x2(true, false, false, true);

            TestUtils.AreEqual(a0 >= b0, r0);

            float2x2 a1 = float2x2(-246.865723f, 53.8151245f, -123.332947f, -221.505463f);
            float    b1 = (-377.6587f);
            bool2x2  r1 = bool2x2(true, true, true, true);

            TestUtils.AreEqual(a1 >= b1, r1);

            float2x2 a2 = float2x2(252.994324f, -395.3633f, 164.772583f, -287.007324f);
            float    b2 = (-116.440369f);
            bool2x2  r2 = bool2x2(true, false, true, false);

            TestUtils.AreEqual(a2 >= b2, r2);

            float2x2 a3 = float2x2(355.837036f, 273.012268f, -418.1424f, 249.3841f);
            float    b3 = (184.195557f);
            bool2x2  r3 = bool2x2(true, true, false, true);

            TestUtils.AreEqual(a3 >= b3, r3);
        }
Exemplo n.º 22
0
        public static void float2x2_operator_less_scalar_wide()
        {
            float    a0 = (-250.484924f);
            float2x2 b0 = float2x2(-377.196533f, -505.147552f, 375.9267f, 110.17395f);
            bool2x2  r0 = bool2x2(false, false, true, true);

            TestUtils.AreEqual(a0 < b0, r0);

            float    a1 = (-118.097565f);
            float2x2 b1 = float2x2(-40.4508972f, -299.744324f, 31.4371338f, -458.904541f);
            bool2x2  r1 = bool2x2(true, false, true, false);

            TestUtils.AreEqual(a1 < b1, r1);

            float    a2 = (13.6846924f);
            float2x2 b2 = float2x2(-458.5069f, 248.276489f, 389.231445f, 488.745544f);
            bool2x2  r2 = bool2x2(false, true, true, true);

            TestUtils.AreEqual(a2 < b2, r2);

            float    a3 = (-221.637878f);
            float2x2 b3 = float2x2(-424.2672f, 249.059021f, -22.1361389f, -442.247742f);
            bool2x2  r3 = bool2x2(false, true, true, false);

            TestUtils.AreEqual(a3 < b3, r3);
        }
Exemplo n.º 23
0
        public static void float2x2_operator_equal_wide_scalar()
        {
            float2x2 a0 = float2x2(65.6712f, 404.415527f, -269.730164f, 83.6306152f);
            float    b0 = (-155.815765f);
            bool2x2  r0 = bool2x2(false, false, false, false);

            TestUtils.AreEqual(a0 == b0, r0);

            float2x2 a1 = float2x2(152.9945f, 314.671265f, 386.365173f, 290.04895f);
            float    b1 = (-155.868286f);
            bool2x2  r1 = bool2x2(false, false, false, false);

            TestUtils.AreEqual(a1 == b1, r1);

            float2x2 a2 = float2x2(-132.6352f, -69.68326f, -191.190765f, 186.845215f);
            float    b2 = (-65.66748f);
            bool2x2  r2 = bool2x2(false, false, false, false);

            TestUtils.AreEqual(a2 == b2, r2);

            float2x2 a3 = float2x2(-232.895691f, -49.70108f, -300.8819f, 333.396851f);
            float    b3 = (-319.144043f);
            bool2x2  r3 = bool2x2(false, false, false, false);

            TestUtils.AreEqual(a3 == b3, r3);
        }
Exemplo n.º 24
0
        public static void float2x2_operator_greater_wide_wide()
        {
            float2x2 a0 = float2x2(-229.29068f, 505.536621f, -73.80707f, 100.292053f);
            float2x2 b0 = float2x2(-445.845032f, -420.035278f, 299.0244f, -13.8809814f);
            bool2x2  r0 = bool2x2(true, true, false, true);

            TestUtils.AreEqual(a0 > b0, r0);

            float2x2 a1 = float2x2(-419.214783f, -159.559753f, -396.770355f, 127.037415f);
            float2x2 b1 = float2x2(151.5617f, -163.50943f, -391.096039f, 479.283752f);
            bool2x2  r1 = bool2x2(false, true, false, false);

            TestUtils.AreEqual(a1 > b1, r1);

            float2x2 a2 = float2x2(489.1399f, 51.9188843f, 155.384766f, -135.631653f);
            float2x2 b2 = float2x2(-77.6748657f, -46.584198f, -415.377f, 71.46698f);
            bool2x2  r2 = bool2x2(true, true, true, false);

            TestUtils.AreEqual(a2 > b2, r2);

            float2x2 a3 = float2x2(-425.978149f, -228.430511f, 383.03833f, 136.533569f);
            float2x2 b3 = float2x2(-206.061035f, 360.8363f, 236.968811f, 14.550354f);
            bool2x2  r3 = bool2x2(false, false, true, true);

            TestUtils.AreEqual(a3 > b3, r3);
        }
Exemplo n.º 25
0
        public void bool2x2_operator_bitwise_and_wide_wide()
        {
            bool2x2 a0 = bool2x2(false, false);
            bool2x2 b0 = bool2x2(false, false);
            bool2x2 r0 = bool2x2(false, false);

            TestUtils.AreEqual(a0 & b0, r0);

            bool2x2 a1 = bool2x2(true, true);
            bool2x2 b1 = bool2x2(true, false);
            bool2x2 r1 = bool2x2(true, false);

            TestUtils.AreEqual(a1 & b1, r1);

            bool2x2 a2 = bool2x2(false, false);
            bool2x2 b2 = bool2x2(true, true);
            bool2x2 r2 = bool2x2(false, false);

            TestUtils.AreEqual(a2 & b2, r2);

            bool2x2 a3 = bool2x2(true, true);
            bool2x2 b3 = bool2x2(false, false);
            bool2x2 r3 = bool2x2(false, false);

            TestUtils.AreEqual(a3 & b3, r3);
        }
Exemplo n.º 26
0
        public static void float2x2_operator_greater_wide_scalar()
        {
            float2x2 a0 = float2x2(11.156311f, -411.023224f, 385.885559f, -485.103058f);
            float    b0 = (-302.816956f);
            bool2x2  r0 = bool2x2(true, false, true, false);

            TestUtils.AreEqual(a0 > b0, r0);

            float2x2 a1 = float2x2(-491.180023f, 173.575073f, 69.26929f, 501.306824f);
            float    b1 = (405.175354f);
            bool2x2  r1 = bool2x2(false, false, false, true);

            TestUtils.AreEqual(a1 > b1, r1);

            float2x2 a2 = float2x2(-367.027771f, -489.090576f, -172.518158f, -18.1496277f);
            float    b2 = (-86.12451f);
            bool2x2  r2 = bool2x2(false, false, false, true);

            TestUtils.AreEqual(a2 > b2, r2);

            float2x2 a3 = float2x2(-236.414948f, -27.2391357f, 471.779358f, 240.164551f);
            float    b3 = (-238.8945f);
            bool2x2  r3 = bool2x2(true, true, true, true);

            TestUtils.AreEqual(a3 > b3, r3);
        }
Exemplo n.º 27
0
        public void bool2x2_operator_bitwise_xor_scalar_wide()
        {
            bool    a0 = (true);
            bool2x2 b0 = bool2x2(true, false);
            bool2x2 r0 = bool2x2(false, true);

            TestUtils.AreEqual(a0 ^ b0, r0);

            bool    a1 = (true);
            bool2x2 b1 = bool2x2(true, false);
            bool2x2 r1 = bool2x2(false, true);

            TestUtils.AreEqual(a1 ^ b1, r1);

            bool    a2 = (true);
            bool2x2 b2 = bool2x2(true, false);
            bool2x2 r2 = bool2x2(false, true);

            TestUtils.AreEqual(a2 ^ b2, r2);

            bool    a3 = (false);
            bool2x2 b3 = bool2x2(true, true);
            bool2x2 r3 = bool2x2(true, true);

            TestUtils.AreEqual(a3 ^ b3, r3);
        }
Exemplo n.º 28
0
        public static void float2x2_operator_greater_scalar_wide()
        {
            float    a0 = (453.546082f);
            float2x2 b0 = float2x2(-226.2044f, -423.465f, 409.405518f, 453.877075f);
            bool2x2  r0 = bool2x2(true, true, true, false);

            TestUtils.AreEqual(a0 > b0, r0);

            float    a1 = (87.47571f);
            float2x2 b1 = float2x2(113.795593f, 176.409241f, -140.440033f, -182.48288f);
            bool2x2  r1 = bool2x2(false, false, true, true);

            TestUtils.AreEqual(a1 > b1, r1);

            float    a2 = (-158.2933f);
            float2x2 b2 = float2x2(-162.685333f, -193.328674f, 230.181274f, -102.58783f);
            bool2x2  r2 = bool2x2(true, true, false, false);

            TestUtils.AreEqual(a2 > b2, r2);

            float    a3 = (392.520569f);
            float2x2 b3 = float2x2(-177.478668f, -10.2950134f, -24.04895f, 172.448669f);
            bool2x2  r3 = bool2x2(true, true, true, true);

            TestUtils.AreEqual(a3 > b3, r3);
        }
Exemplo n.º 29
0
        public void bool2x2_operator_not_equal_wide_wide()
        {
            bool2x2 a0 = bool2x2(true, true);
            bool2x2 b0 = bool2x2(true, false);
            bool2x2 r0 = bool2x2(false, true);

            TestUtils.AreEqual(a0 != b0, r0);

            bool2x2 a1 = bool2x2(true, false);
            bool2x2 b1 = bool2x2(false, false);
            bool2x2 r1 = bool2x2(true, false);

            TestUtils.AreEqual(a1 != b1, r1);

            bool2x2 a2 = bool2x2(false, true);
            bool2x2 b2 = bool2x2(true, false);
            bool2x2 r2 = bool2x2(true, true);

            TestUtils.AreEqual(a2 != b2, r2);

            bool2x2 a3 = bool2x2(false, false);
            bool2x2 b3 = bool2x2(false, false);
            bool2x2 r3 = bool2x2(false, false);

            TestUtils.AreEqual(a3 != b3, r3);
        }
Exemplo n.º 30
0
        public void float2x2_operator_less_equal_scalar_wide()
        {
            float    a0 = (393.606262f);
            float2x2 b0 = float2x2(-75.6883545f, -44.2638855f);
            bool2x2  r0 = bool2x2(false, false);

            TestUtils.AreEqual(a0 <= b0, r0);

            float    a1 = (125.864929f);
            float2x2 b1 = float2x2(191.9649f, 13.54303f);
            bool2x2  r1 = bool2x2(true, false);

            TestUtils.AreEqual(a1 <= b1, r1);

            float    a2 = (-197.051941f);
            float2x2 b2 = float2x2(-423.9451f, -330.0486f);
            bool2x2  r2 = bool2x2(false, false);

            TestUtils.AreEqual(a2 <= b2, r2);

            float    a3 = (420.165527f);
            float2x2 b3 = float2x2(105.5473f, 174.821289f);
            bool2x2  r3 = bool2x2(false, false);

            TestUtils.AreEqual(a3 <= b3, r3);
        }