gfx ~meson (2022-03-26T21:27:26.8342465)
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