Sets this vector to the unit vector codirectional with this vector, and returns the length prior to normalization.
If this.length() <= tol, this vector is unchanged and zero length is returned.