/// <summary> /// Determines whether the specified item contains a valid point. /// </summary> /// <param name="item"> /// The item. /// </param> /// <param name="xaxis"> /// The x axis. /// </param> /// <param name="yaxis"> /// The y axis. /// </param> /// <returns> /// <c>true</c> if the point is valid; otherwise, <c>false</c> . /// </returns> public virtual bool IsValidPoint(BoxPlotItem item, Axis xaxis, Axis yaxis) { return(!double.IsNaN(item.X) && !double.IsInfinity(item.X) && !item.Values.Any(double.IsNaN) && !item.Values.Any(double.IsInfinity) && (xaxis != null && xaxis.IsValidValue(item.X)) && (yaxis != null && item.Values.All(yaxis.IsValidValue))); }
/// <summary> /// Determines whether the specified point is valid. /// </summary> /// <param name="pt"> /// The pointt. /// </param> /// <param name="xaxis"> /// The x axis. /// </param> /// <param name="yaxis"> /// The y axis. /// </param> /// <returns> /// <c>true</c> if the point is valid; otherwise, <c>false</c> . /// </returns> protected virtual bool IsValidPoint(IDataPoint pt, Axis xaxis, Axis 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)); }
/// <summary> /// Determines whether the specified point is valid. /// </summary> /// <param name="pt"> /// The pointt. /// </param> /// <param name="xaxis"> /// The x axis. /// </param> /// <param name="yaxis"> /// The y axis. /// </param> /// <returns> /// <c>true</c> if the point is valid; otherwise, <c>false</c> . /// </returns> protected virtual bool IsValidPoint(IDataPoint pt, Axis xaxis, Axis 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))); }
/// <summary> /// Determines whether the specified point is valid. /// </summary> /// <param name="pt"> /// The pointt. /// </param> /// <param name="xaxis"> /// The x axis. /// </param> /// <param name="yaxis"> /// The y axis. /// </param> /// <returns> /// <c>true</c> if the point is valid; otherwise, <c>false</c> . /// </returns> public virtual bool IsValidPoint(ScatterPoint pt, Axis xaxis, Axis 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))); }
/// <summary> /// Determines whether the specified point is valid. /// </summary> /// <param name="pt"> /// The pointt. /// </param> /// <param name="xaxis"> /// The x axis. /// </param> /// <param name="yaxis"> /// The y axis. /// </param> /// <returns> /// <c>true</c> if the point is valid; otherwise, <c>false</c> . /// </returns> public virtual bool IsValidPoint(ScatterPoint pt, Axis xaxis, Axis 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)); }
/// <summary> /// Determines whether the specified item contains a valid point. /// </summary> /// <param name="item"> /// The item. /// </param> /// <param name="xaxis"> /// The x axis. /// </param> /// <param name="yaxis"> /// The y axis. /// </param> /// <returns> /// <c>true</c> if the point is valid; otherwise, <c>false</c> . /// </returns> public virtual bool IsValidPoint(BoxPlotItem item, Axis xaxis, Axis yaxis) { return !double.IsNaN(item.X) && !double.IsInfinity(item.X) && !item.Values.Any(double.IsNaN) && !item.Values.Any(double.IsInfinity) && (xaxis != null && xaxis.IsValidValue(item.X)) && (yaxis != null && item.Values.All(yaxis.IsValidValue)); }