()
| 1673 | return this.scalar ** 2 + this.vector.x ** 2 + this.vector.y ** 2 + this.vector.z ** 2; |
| 1674 | } |
| 1675 | normal() { |
| 1676 | return this.div(this.mag()); |
| 1677 | } |
| 1678 | dot(other) { |
| 1679 | return this.scalar * other.scalar + this.vector.dot(other.vector); |
| 1680 | } |