setLength

fun setLength(length: Double): Vector4

Sets this vector's length to length, preserving direction.

Return

A reference to this vector.