mirror of
https://github.com/bevyengine/bevy
synced 2024-12-23 03:23:20 +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. |
||
---|---|---|
.. | ||
bounding | ||
primitives | ||
rects | ||
sampling | ||
affine3.rs | ||
aspect_ratio.rs | ||
common_traits.rs | ||
compass.rs | ||
cubic_splines.rs | ||
direction.rs | ||
float_ord.rs | ||
isometry.rs | ||
lib.rs | ||
ray.rs | ||
rotation2d.rs |