* Sets this vector to a vector with the same direction as this one, but * with the specified length. * * @param {number} length - The new length of this vector. * @return {Vector3} A reference to this vector.
( length )
| 803 | * @return {Vector3} A reference to this vector. |
| 804 | */ |
| 805 | setLength( length ) { |
| 806 | |
| 807 | return this.normalize().multiplyScalar( length ); |
| 808 | |
| 809 | } |
| 810 | |
| 811 | /** |
| 812 | * Linearly interpolates between the given vector and this instance, where |
no test coverage detected