mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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(). Bug: 1467277 Reviewed-by: hiro |
||
---|---|---|
.. | ||
animated | ||
computed | ||
generics | ||
specified | ||
distance.rs | ||
mod.rs |