示例#1
0
        public double getArea()
        {
            double first  = point1.getDistance(point2);
            double second = point1.getDistance(point3);

            return(first * second);
        }
示例#2
0
文件: Triangle.cs 项目: GelyaTh/l22
        public double getPerimeter()
        {
            double first  = point1.getDistance(point2);
            double second = point2.getDistance(point3);
            double third  = point3.getDistance(point1);

            return(first + second + third);
        }