public Point(double x,double y)
public void Setx(double x)
public void Sety(double y)
public bool IsEqual(Point other)
if(this.x==other.x && this.y == other.y)
public bool IsAbove(Point other)
public bool Isunder(Point other)
public bool Isleft(Point other)
public bool Isright(Point other)
public int Whichquardrad(Point other)
if(other.x>0 && other.y>0)
if(other.x<0 && other.y>0)
if(other.x<0 && other.y<0)
public double Distance(Point P)
double result = Math.Sqrt(Math.Pow(P.y-this.y,2)+Math.Pow(P.x-this.x,2));
public Point Mirrorpoint(Point p)
Point newx = new Point (p.Getx()*-1,p.Gety()*-1);
public void move (double dx, double dy)
Console.WriteLine(dx+","+dy);
Console.WriteLine("x:{0}"+"y:{1}",x,y);
public static void Main()
Point p1 = new Point(3,-5);
Point p2 = new Point(2,6);
Console.WriteLine("shavim");
Console.WriteLine("not shavim");
Console.WriteLine("above");
Console.WriteLine("not above");
Console.WriteLine("under");
Console.WriteLine("not under");
Console.WriteLine("is left");
Console.WriteLine("is not left");
Console.WriteLine("is right");
Console.WriteLine("is not right");
Console.WriteLine("ravia:"+p1.Whichquardrad(p1));
if(p2.Getx()!=0 && p2.Gety()!=0)
Console.WriteLine(p2.Mirrorpoint(p2));
p1.move(p1.Getx(),p1.Gety());