(other)
| 365 | return this.normal().mul(length); |
| 366 | } |
| 367 | dot(other) { |
| 368 | const { x , y , z } = this.mul(other); |
| 369 | return x + y + z; |
| 370 | } |
| 371 | cross(other) { |
| 372 | return new Vector3(this.y * other.z - this.z * other.y, this.z * other.x - this.x * other.z, this.x * other.y - this.y * other.x); |
| 373 | } |