gfx ~master (2021-03-28T16:54:18Z)
Dub
Repo
normalize.normalize
gfx
math
vec
normalize
Undocumented in source.
template
normalize
(T, size_t N)
pure @
safe
nothrow @
nogc
pure nothrow @
nogc
@
safe
Vec
!(
T
,
N
)
normalize
(
in
Vec
!(
T
,
N
)
v
)
out (res) { assert (approxUlpAndAbs(magnitude(res), 1)); }
if
(
isFloatingPoint
!
T
)
Meta
Source
See Implementation
gfx
math
vec
normalize
functions
normalize