nothing icon indicating copy to clipboard operation
nothing copied to clipboard

math/point/vec_norm: using vec_length is too expensive

Open rexim opened this issue 6 years ago • 1 comments

introduced in #652 It involves multiplication and sqrt. We can just check if its components are close to 0.0f.

rexim avatar Jan 23 '19 05:01 rexim

I don't think it can be improved that way because the length of the vector have to be calculated anyway in order to calculate the unit vector.

ghost avatar Oct 01 '20 11:10 ghost