Refactor Charter code
This commit is contained in:
+8
-36
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user