Add utility function to clamp a vector to a maximum magnitude.
Add utility function to clamp a vector to a maximum magnitude.

M-O-S-E-S/opensim,TomDataworks/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,ft-/opensim-optimizations-wip-tests,ft-/opensim-optimizations-wip-tests,rryk/omp-server,justinccdev/opensim,OpenSimian/opensimulator,QuillLittlefeather/opensim-1,OpenSimian/opensimulator,RavenB/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,ft-/opensim-optimizations-wip,M-O-S-E-S/opensim,ft-/opensim-optimizations-wip-extras,QuillLittlefeather/opensim-1,ft-/arribasim-dev-tests,RavenB/opensim,RavenB/opensim,rryk/omp-server,TomDataworks/opensim,M-O-S-E-S/opensim,OpenSimian/opensimulator,BogusCurry/arribasim-dev,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,BogusCurry/arribasim-dev,Michelle-Argus/ArribasimExtract,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,Michelle-Argus/ArribasimExtract,bravelittlescientist/opensim-performance,bravelittlescientist/opensim-performance,justinccdev/opensim,ft-/arribasim-dev-tests,justinccdev/opensim,BogusCurry/arribasim-dev,OpenSimian/opensimulator,M-O-S-E-S/opensim,QuillLittlefeather/opensim-1,TomDataworks/opensim,Michelle-Argus/ArribasimExtract,BogusCurry/arribasim-dev,ft-/opensim-optimizations-wip-extras,RavenB/opensim,OpenSimian/opensimulator,OpenSimian/opensimulator,QuillLittlefeather/opensim-1,bravelittlescientist/opensim-performance,TomDataworks/opensim,RavenB/opensim,TomDataworks/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,Michelle-Argus/ArribasimExtract,ft-/arribasim-dev-extras,OpenSimian/opensimulator,RavenB/opensim,M-O-S-E-S/opensim,ft-/arribasim-dev-tests,ft-/arribasim-dev-extras,bravelittlescientist/opensim-performance,Michelle-Argus/ArribasimExtract,ft-/opensim-optimizations-wip,TomDataworks/opensim,rryk/omp-server,ft-/arribasim-dev-extras,rryk/omp-server,ft-/opensim-optimizations-wip-tests,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,ft-/arribasim-dev-tests,ft-/opensim-optimizations-wip,justinccdev/opensim,ft-/opensim-optimizations-wip-tests,Michelle-Argus/ArribasimExtract,ft-/arribasim-dev-tests,ft-/opensim-optimizations-wip-tests,justinccdev/opensim,ft-/arribasim-dev-tests,justinccdev/opensim,ft-/opensim-optimizations-wip,bravelittlescientist/opensim-performance,QuillLittlefeather/opensim-1,rryk/omp-server,ft-/opensim-optimizations-wip-extras,TomDataworks/opensim,M-O-S-E-S/opensim,BogusCurry/arribasim-dev,BogusCurry/arribasim-dev,bravelittlescientist/opensim-performance,rryk/omp-server,ft-/arribasim-dev-extras,ft-/arribasim-dev-extras,ft-/opensim-optimizations-wip-extras,QuillLittlefeather/opensim-1,RavenB/opensim,M-O-S-E-S/opensim,ft-/arribasim-dev-extras,ft-/opensim-optimizations-wip-extras,QuillLittlefeather/opensim-1,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC