johnmccutchan/vector_math — pull request #66 by ArgentiApparatus (2014-05-03 17:54:08+00:00)
Title: Added setLength() method to Vector2, Vector3 and Vector4

Added a setLength() method to Vector2, Vector3 and Vector4, both 32 and 64 bit versions.

This can be viewed as a generalized version of normalize(), an I've tried to make the implementations very similar. the behavior when the existing length==0.0 is the same.