Refactor Charter code

This commit is contained in:
2015-11-21 23:10:52 -05:00
parent 5aaed082c9
commit 50304be0c9
7 changed files with 264 additions and 873 deletions
+8 -36
View File
@@ -3,49 +3,21 @@
namespace LeafWeb.Web.Charter
{
[Serializable]
public class XYPoint
public class XyPoint
{
private double x;
private double y;
public XYPoint(double x1, double y1)
public XyPoint(String x, String y)
{
x = x1;
y = y1;
X = Double.Parse(x);
Y = Double.Parse(y);
}
public XYPoint(String x1, String y1)
{
x = Double.Parse(x1);
y = Double.Parse(y1);
}
public double X { get; private set; }
public double getX()
{
return x;
}
public double Y { get; private set; }
public void setX(double x1)
public bool YIsInRange(double lowEnd, double highEnd)
{
x = x1;
}
public double getY()
{
return y;
}
public void setY(double y1)
{
y = y1;
}
public bool yIsInRange(double lowEnd, double highEnd)
{
if ((y >= lowEnd) && (y <= highEnd))
return true;
else
return false;
return (Y >= lowEnd) && (Y <= highEnd);
}
}
}