Fixed a bug in the implementation of LimitMaxDeviationAngle and LimitMinDeviationAngle which caused them to return NaN with perfectly misaligned vectors.

Signed-off-by: Martin Evans <martindevans@gmail.com>