IsNaN() 공개 정적인 메소드

public static IsNaN ( double value ) : bool
value double
리턴 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);
 }
 public static bool RectHasNaN(Rect r)
 {
     return(DoubleUtil.IsNaN(r.X) || DoubleUtil.IsNaN(r.Y) || (DoubleUtil.IsNaN(r.Height) || DoubleUtil.IsNaN(r.Width)));
 }