setLength method

Vector3 setLength(
  1. num length
)

Implementation

Vector3 setLength(num length) {
  return normalize().multiplyScalar(length);
}