Пример #1
0
 public virtual bool IsValidPoint(DataPoint pt, IAxis xAxis, IAxis yAxis)
 {
     return(!double.IsNaN(pt.X) && !double.IsInfinity(pt.X) &&
            !double.IsNaN(pt.Y) && !double.IsInfinity(pt.Y) &&
            (xAxis != null && xAxis.IsValidValue(pt.X)) &&
            (yAxis != null && yAxis.IsValidValue(pt.Y)));
 }
Пример #2
0
 public virtual bool IsValidPoint(DataPoint pt, IAxis xAxis, IAxis yAxis)
 {
     return !double.IsNaN(pt.X) && !double.IsInfinity(pt.X)
            && !double.IsNaN(pt.Y) && !double.IsInfinity(pt.Y)
            && (xAxis!=null && xAxis.IsValidValue(pt.X))
            && (yAxis!=null && yAxis.IsValidValue(pt.Y));
 }