mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
9f376df2d5
# Objective The isometry types added in #14269 support transforming other isometries and points, as well as computing the inverse of an isometry using `inverse`. However, transformations like `iso1.inverse() * iso2` and `iso.inverse() * point` can be optimized for single-shot cases using custom methods that avoid an extra rotation operation. ## Solution Add `inverse_mul` and `inverse_transform_point` for `Isometry2d` and `Isometry3d`. Note that these methods are only faster when the isometry can't be reused for multiple transformations. ## Testing All of the methods have a test, similarly to the existing transformation operations. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |