예제 #1
0
		public Point2d (Point2d P) // copy constructor
		{
			X = P.X;
			Y = P.Y;
		}
예제 #2
0
 public Point2d(Point2d P)          // copy constructor
 {
     X = P.X;
     Y = P.Y;
 }
예제 #3
0
		public static double dot(Point2d P1, Point2d P2) // inner product 2
		{
			return (P1.X * P2.X + P1.Y * P2.Y);
		}
예제 #4
0
 public static double dot(Point2d P1, Point2d P2)         // inner product 2
 {
     return(P1.X * P2.X + P1.Y * P2.Y);
 }