Files
LeafWeb/Core/Models/XYPoint.cs
T
2015-12-02 12:40:00 -05:00

23 lines
378 B
C#

using System;
namespace LeafWeb.Core.Models
{
[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);
}
}
}