IsNaN() public static method

public static IsNaN ( double value ) : bool
value double
return bool
コード例 #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);
 }
コード例 #2
0
 public static bool RectHasNaN(Rect r)
 {
     return(DoubleUtil.IsNaN(r.X) || DoubleUtil.IsNaN(r.Y) || (DoubleUtil.IsNaN(r.Height) || DoubleUtil.IsNaN(r.Width)));
 }