namespace org.openda.dotnet.DHIStochObserver
{
public class XYLayerPoint : IXYLayerPoint
{
private double _x;
private double _y;
private int _layer;
///
/// Constructor.
///
/// None
public XYLayerPoint(double x, double y, int layer)
{
_x = x;
_y = y;
_layer = layer;
}
///
/// Read/Write property describing the x-coordinate of the point.
///
public double X
{
get { return _x; }
}
///
/// Read/Write property describing the y-coordinate of the point.
///
public double Y
{
get { return _y; }
}
///
/// Read/Write property describing the z-coordinate of the point.
///
public int Layer
{
get { return _layer; }
}
///
/// Get Hash Code.
///
/// Hash Code for the current instance.
public override int GetHashCode()
{
return base.GetHashCode();
}
public override string ToString()
{
// For debugging purposes, overriding the ToString method.
return string.Format("({0},{1},{2})",
_x.ToString(System.Globalization.CultureInfo.InvariantCulture),
_y.ToString(System.Globalization.CultureInfo.InvariantCulture),
_layer.ToString(System.Globalization.CultureInfo.InvariantCulture));
}
}
}