12345678910111213141516171819202122232425262728293031323334353637 |
- module.exports = class Vector3 {
-
- constructor(x, y, z) {
- this.x = x;
- this.y = y;
- this.z = z;
- }
-
- add(operand) {
- this.x += operand.x;
- this.y += operand.y;
- this.z += operand.z;
- }
-
- negate() {
- this.x = -this.x;
- this.y = -this.y;
- this.z = -this.z;
- }
- };
|