public override double Area()
 {
     GetArea?.Invoke();
     return(Math.Abs((Points[0].X - Points[2].X) * (Points[1].Y - Points[2].Y) -
                     (Points[1].X - Points[2].X) * (Points[0].Y - Points[2].Y)) / 2);
 }
예제 #2
0
 public override double Area()
 {
     GetArea?.Invoke();
     return(Math.Round(Height() * Width(), 2));
 }
예제 #3
0
 public override double Area()
 {
     GetArea?.Invoke(this, null);
     return(Math.Round(Width() * Width(), 2));
 }