@@ -23,4 +23,15 @@ module.exports = class Vector3 {
this.y += operand.y;
this.z += operand.z;
}
+
+ /**
+ * Flip the sign of all properties of the vector
+ *
+ * @returns {void}
+ */
+ negate() {
+ this.x = -this.x;
+ this.y = -this.y;
+ this.z = -this.z;
+ }
};