コード例 #1
0
 /// <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);
 }