Mike Day: Vector length and normalization difficulties

Warning: Function split() is deprecated in /home/webapps/www/releases/20141031205554/wp-content/plugins/addthis/addthis_social_widget.php on line 385

Here’s a short account of an easily overlooked difficulty with vector length and vector normalization functions, together with one way of solving the problem. We’ll use 3-component vectors by way of illustration, but the idea is easily extended to longer or shorter vectors, quaternions, etc. Single-precision floating point is assumed.


  • Steven

    huh, that might have actually already caused a problem for me (with very large values instead of small though). Thanks for the article, I never thought about that.