Mike Day: Vector length and normalization difficulties

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.