示例#1
0
文件: FInt.cs 项目: wwarnick/Sever
		public static FPoint VectorDivide(FPoint F1, int Divisor)
		{
			FPoint result;
			result.X = F1.X / Divisor;
			result.Y = F1.Y / Divisor;
			return result;
		}
示例#2
0
文件: FInt.cs 项目: wwarnick/Sever
		public static FPoint VectorAdd(FPoint F1, FPoint F2)
		{
			FPoint result;
			result.X = F1.X + F2.X;
			result.Y = F1.Y + F2.Y;
			return result;
		}
示例#3
0
文件: FInt.cs 项目: wwarnick/Sever
		public static FPoint VectorSubtract(FPoint F1, FPoint F2)
		{
			FPoint result;
			result.X = F1.X - F2.X;
			result.Y = F1.Y - F2.Y;
			return result;
		}
示例#4
0
文件: FInt.cs 项目: wwarnick/Sever
		public static Point ToPoint(FPoint f)
		{
			return new Point(f.X.IntValue, f.Y.IntValue);
		}