Hello @Ella McGillivray
Would you please do the following
- Post actual code rather than an image
- Indicate what the issue is
In the meantime all I can do is guess
class Point
{
private int _p0;
private int _pl;
private Point P0;
private Point PI;
private decimal _slope;
private Point Pl;
public Point(int newP0, int newPl)
{
_p0 = newP0;
_pl = newPl;
}
public Point(int p0X, int p0Y, int plX, int plY)
{
P0 = new Point(p0X, p0Y);
PI = new Point(plX, plY);
}
public decimal Slope
{
get
{
_slope = (PI._p0 - P0._p0) / (Pl._p0 - P0._p0); return _slope;
}
}
}
Thanks