namespace Yw.EPAnet
{
///
///
///
public class CurvePoint
{
///
///
///
public CurvePoint() { }
///
///
///
public CurvePoint(int x, int y) : this()
{
this.X = x;
this.Y = y;
}
///
///
///
public CurvePoint(float x, float y) : this()
{
this.X = x;
this.Y = y;
}
///
///
///
public CurvePoint(double x, double y) : this()
{
this.X = x;
this.Y = y;
}
///
///
///
public CurvePoint(decimal x, decimal y) : this()
{
this.X = (double)x;
this.Y = (double)y;
}
///
///
///
public CurvePoint(CurvePoint rhs) : this()
{
this.X = rhs.X;
this.Y = rhs.Y;
}
///
/// X
///
public double X { get; set; }
///
/// Y
///
public double Y { get; set; }
///
///
///
public override string ToString()
{
return $"{this.X},{this.Y}";
}
}
}