gfx v0.2.0 (2020-11-15T11:15:14Z)
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