示例#1
0
 public static double dot(Point2d P1, Point2d P2) // inner product 2
 {
     return(P1.X * P2.X + P1.Y * P2.Y);
 }
示例#2
0
 /// <summary>
 /// 拷贝构造函数
 /// </summary>
 /// <param name="P">二维点P</param>
 public Point2d(Point2d P)
 {
     X = P.X;
     Y = P.Y;
 }