mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 11:45:37 +00:00
c8d7bee5ff
If we have a rotate axis whose length is extremely large, we will get an infinite value, and its normalized vector is a zero vector, instead of an unit vector, i.e. (x/inf, y/inf, z/inf) == (0, 0, 0). The solution is: we scale the vector, so the length becomes a finite value, and we could get a valid unit vector. Therefore, we use a different normalization method, robust_normalize(). MozReview-Commit-ID: L8SteFe09aO --HG-- extra : rebase_source : 4568c8bf906a9246e4ef13672a9ed541852b974a |
||
---|---|---|
.. | ||
fallible | ||
hashglobe | ||
malloc_size_of | ||
malloc_size_of_derive | ||
selectors | ||
servo_arc | ||
size_of_test | ||
style | ||
style_derive | ||
style_traits |