Trying to execute the code below prevents me from moving forward. In my "Theline" class I have a constructor that accepts two arguments (int) but the error message I get says "Cannot convert from 'ConsoleApplication1.Point' to 'int'" What am I missing?
public static void Main()
{
Point a0 = new Point(0, 0);
Point a1 = new Point(-1, -1);
Theline line = new Theline(a0, a1);
}
TheLineclass constructor to acceptPoints because to define the line you need two points.ints (x and y). if you want to create line from two points you have to pass inThelinetwo points. and there are some drawing algorithms such as Bresenham's Line Algorithm you can search for that in google.