예제 #1
0
        public Triangle(Point a, Point b, Point c)
        {
            this.Coordinates = new[] { a, b, c };

            sides = new[]
            {
                ShapeUtils.GetDistance(a, b),
                ShapeUtils.GetDistance(b, c),
                ShapeUtils.GetDistance(c, a)
            };
        }