Download code

Jump to: navigation, search

Back to Normalize_vector_(Haskell)

Download for Windows: single file, zip

Download for UNIX: single file, zip, tar.gz, tar.bz2

normalize_vector_with_vscale_and_magnitude

normalize :: (Floating a) => [a] -> [a]
normalize us = vscale (1/(magnitude us)) us