20 lines
351 B
C#
20 lines
351 B
C#
namespace LeafWeb.Core.CharterOld
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
} |