예제 #1
0
 public static bool TopRightQuadrant(Vector target)
 {
     if (target.Theta >= 0.0 && target.Theta <= 90.0)
     {
         return true;
     }
     else
     {
         return false;
     }
 }
예제 #2
0
 public static int Compare(Vector x, Vector y)
 {
     if (x.R > y.R)
     {
         return 1;
     }
     else if (x.R < y.R)
     {
         return -1;
     }
     return 0;
 }