normalizeVector.Rd
normalizeVector
normalizes a vector to unit length.
normalizeVector(v)
v | a vector |
---|
normalized vector
#> [1] 1 0 0#> [1] 0.7071068 0.7071068 0.0000000#> [1] 0.5773503 0.5773503 0.5773503#> [1] -0.2672612 0.5345225 0.8017837#> [1] 1