Esempio n. 1
0
        public double Square()
        {
            double p     = Perimiter() / 2;
            double sideA = Point1.Distance(Point2);
            double sideB = Point2.Distance(Point3);
            double sideC = Point3.Distance(Point1);

            return(Math.Sqrt(p * (p - sideA) * (p - sideB) * (p - sideC)));
        }
Esempio n. 2
0
 public double Perimiter()
 {
     return(Point1.Distance(Point2) + Point2.Distance(Point3) + Point3.Distance(Point1));
 }