コード例 #1
0
ファイル: GenericPoint.cs プロジェクト: Rain0Ash/NetExtender
 public static Point <T> operator /(Point <T> first, Point <T> second)
 {
     return(new Point <T>(MathUnsafe.Divide(first.X, second.X), MathUnsafe.Divide(first.Y, second.Y)));
 }
コード例 #2
0
 public static Point <T> operator /(Point <T> pos1, Point <T> pos2)
 {
     return(new Point <T>(MathUnsafe.Divide(pos1.X, pos2.X), MathUnsafe.Divide(pos1.Y, pos2.Y)));
 }