Ensure a vector is not longer than a max length
The vec4 to limit
The longest length of the resulting vector
Optional
The vector, shortened to maxLen if it's too long
Ensure a vector is not longer than a max length