CBA_fnc_scaleVectTo

Description

scales a vector so that its new Magnitude is equivalent to a specified value.

Parameters

_vect the vector to scale.  _newMagVal the value of the magnitude of the new scaled vector.

Returns

a vector which has the same direction and elevation as the original vector, but which has a specified magnitude.

Examples

  • @[not needed yet]* @call sct_simplifyAngle.sqf

Author

Vigilante, courtesy by -=ACE=- of Simcentric

Close