Luna::Simd::normalize3_f4
float4 normalize3_f4(float4 a)
Normalizes the first three elements of a
, and stores the result in dst
.
LENGTH := SQRT((a.x * b.x) + (a.y * b.y) + (a.z * b.z))
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.