/// <summary> /// rectHasNaN - this returns true if this rect has X, Y , Height or Width as NaN. /// </summary> /// <param name='r'>The rectangle to test</param> /// <returns>returns whether the Rect has NaN</returns> public static bool RectHasNaN(Rect r) { if (DoubleUtil.IsNaN(r.X) || DoubleUtil.IsNaN(r.Y) || DoubleUtil.IsNaN(r.Height) || DoubleUtil.IsNaN(r.Width)) { return(true); } return(false); }
public static bool RectHasNaN(Rect r) { return(DoubleUtil.IsNaN(r.X) || DoubleUtil.IsNaN(r.Y) || (DoubleUtil.IsNaN(r.Height) || DoubleUtil.IsNaN(r.Width))); }