fast_normalize
Returns a vector in the same direction as p but with a length of 1. fast_normalize is computed as: p * rsqrt((half)(pow(p.x, 2) + pow(p.y, 2) + ...))
.
|
(1) |
-
Returns a vector in the same direction as p but with a length of 1. fast_normalize is computed as: `p * rsqrt((half)(pow(p.x, 2) + pow(p.y, 2) + ...))`.
Parameters:-
F
p
-