예제 #1
0
 public Point3D Subtract(Point3D p2)
 {
     return new Point3D(x - p2.x, y - p2.y, z - p2.z);
 }
예제 #2
0
 public Point3D(Point3D other)
     : this(other.x, other.y,other.z)
 {
 }
예제 #3
0
 public Point3D Add(Point3D p2)
 {
     return new Point3D(x + p2.x, y + p2.y, z + p2.z);
 }