Example #1
0
        private static Squared <Unit> triangleArea(Difference2 u, Difference2 v)
        {
            var a = u.NumericValue;
            var b = v.NumericValue;

            return(Squared <Unit> .FromValue(Math.Abs(a.X * b.Y - a.Y * b.X) * 0.5f));
        }