Luna::Simd::normalize4_f4
float4 normalize4_f4(float4 a)
Normalizes elements of a
, and stores the result in dst
.
LENGTH := SQRT((a.x * b.x) + (a.y * b.y) + (a.z * b.z) + (a.w * b.w))
dst.x = a.x / LENGTH
dst.y = a.y / LENGTH
dst.z = a.z / LENGTH
dst.w = a.w / LENGTH
If the length of a
parameter is 0 or INF, the result is indefinite.