return this;
}
+ /**
+ * Add coordinates of current point to other point. Value of current point will not be changed.
+ * @return current point.
+ */
+ public Point3D addTo(final Point3D ... otherPoints) {
+ for (final Point3D otherPoint : otherPoints) otherPoint.add(this);
+ return this;
+ }
+
+ /**
+ * Create new point by cloning position of current point.
+ *
+ * @return newly created clone.
+ */
public Point3D clone() {
return new Point3D(this);
}
return this;
}
+ public Point3D rotate(final double angleXZ, final double angleYZ) {
+ return rotate(new Point3D(0, 0, 0), angleXZ, angleYZ);
+ }
+
/**
* Round current point coordinates to integer values.
*/