示例#1
0
        public void Area2()
        {
            var a = new Vector2(2, 1);
            var b = new Vector2(5, 4);
            var c = new Vector2(1, 3);

            Assert.AreEqual(Vector3.Cross(b - a, c - a).z, VectorUtils.Area2(a, b, c));
        }