Example #1
0
 public static FPoint VectorDivide(FPoint F1, int Divisor) {
   FPoint result;
   result.X = F1.X / Divisor;
   result.Y = F1.Y / Divisor;
   return result;
 }
Example #2
0
 public static FPoint VectorAdd(FPoint F1, FPoint F2) {
   FPoint result;
   result.X = F1.X + F2.X;
   result.Y = F1.Y + F2.Y;
   return result;
 }
Example #3
0
 public static FPoint VectorSubtract(FPoint F1, FPoint F2) {
   FPoint result;
   result.X = F1.X - F2.X;
   result.Y = F1.Y - F2.Y;
   return result;
 }
Example #4
0
 public static Point ToPoint(FPoint f) {
   return new Point(f.X.IntValue, f.Y.IntValue);
 }