Files
LeafWeb/Web/Charter/XYPoint.cs
T
2015-11-20 11:46:43 -05:00

51 lines
641 B
C#

using System;
namespace LeafWeb.Web.Charter
{
[Serializable]
public class XYPoint
{
private double x;
private double y;
public XYPoint(double x1, double y1)
{
x = x1;
y = y1;
}
public XYPoint(String x1, String y1)
{
x = Double.Parse(x1);
y = Double.Parse(y1);
}
public double getX()
{
return x;
}
public void setX(double x1)
{
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;
}
}
}