* Converts this vector to a unit vector - that is, sets it equal to a vector * with the same direction as this one, but with a vector length of `1`. * * @return {Vector3} A reference to this vector.
()
| 790 | * @return {Vector3} A reference to this vector. |
| 791 | */ |
| 792 | normalize() { |
| 793 | |
| 794 | return this.divideScalar( this.length() || 1 ); |
| 795 | |
| 796 | } |
| 797 | |
| 798 | /** |
| 799 | * Sets this vector to a vector with the same direction as this one, but |
no test coverage detected