21222324252627
public class Vector { private final CPoint point; public Vector(double x, double y, double z) { point = new Coordinate3D(x, y, z); }
32333435363738
double z = 0; if (p1.is3D() && p2.is3D()) z = p2.getZ() - p1.getZ(); point = new Coordinate3D(x, y, z); }