Files
LeafWeb/Web/Charter/XYPoint.cs
T
2015-11-21 23:10:52 -05:00

23 lines
378 B
C#

using System;
namespace LeafWeb.Web.Charter
{
[Serializable]
public class XyPoint
{
public XyPoint(String x, String y)
{
X = Double.Parse(x);
Y = Double.Parse(y);
}
public double X { get; private set; }
public double Y { get; private set; }
public bool YIsInRange(double lowEnd, double highEnd)
{
return (Y >= lowEnd) && (Y <= highEnd);
}
}
}