Не находит Point. CS0246. Не могу понять в чем ошибка - C#
Формулировка задачи:
Задача на проверку треугольника.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication7
{
class Program
{
static void Main(string[] args)
{
int x = 5, y = -3;
Point p = new Point(x, y);
}
}
}using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication7
{
class Triangle
{
private int x, y, z;
Point a, b, c;
public Triangle(Point X, Point Y, Point Z)
{
a = X;
b = Y;
c = Z;
// нахождение длин сторон
x = (int)System.Math.Sqrt((a.X - b.X) * (a.X - b.X) + (a.Y - b.Y) * (a.Y - b.Y));
y = (int)System.Math.Sqrt((a.X - c.X) * (a.X - c.X) + (a.Y - c.Y) * (a.Y - c.Y));
z = (int)System.Math.Sqrt((c.X - b.X) * (c.X - b.X) + (c.Y - b.Y) * (c.Y - b.Y));
}
public bool canExist()
{
if (x + y > z && x + z > y && y + z > x)
return true;
else return false;
}
public int FindPerimeter()
{
return x + y + z;
}
public int FindSquare()
{
int sum = (x + y + z) / 2;
return (int)System.Math.Sqrt(sum * (sum - x) * (sum - y) * (sum - z));
}
public Point A
{
get
{
return a;
}
}
public Point B
{
get
{
return b;
}
}
public Point C
{
get
{
return c;
}
}
}
}Решение задачи: «Не находит Point. CS0246. Не могу понять в чем ошибка»
textual
Листинг программы
using System.Drawing;