I am writing my own class to mimic the PointF
class in .NET.
public class PointD
{
public static readonly PointD Empty;
public double X, Y;
// ... Other functions
}
In my example, how do I use the field Empty
? When I compare it, is it something like:
PointD myPoint;
if(myPoint == PointD.Empty) // do something