* normalize this vector (scale the vector so that its magnitude is 1) * @returns Reference to this object for method chaining
()
| 294 | * @returns Reference to this object for method chaining |
| 295 | */ |
| 296 | normalize() { |
| 297 | return this.div(this.length() || 1); |
| 298 | } |
| 299 | |
| 300 | /** |
| 301 | * change this vector to be perpendicular to what it was before.<br> |