mirror of
https://github.com/bevyengine/bevy
synced 2024-09-20 14:32:06 +00:00
ef50b3c9f6
# Objective - Sometimes it's very useful to know if a `Transform` contains any `NaN` or infinite values. It's a bit boiler-plate heavy to check translation, rotation and scale individually. ## Solution - Add a new method `is_finite` that returns true if, and only if translation, rotation and scale all are finite. - It's a natural extension of `Quat::is_finite`, and `Vec3::is_finite`, which return true if, and only if all their components' `is_finite()` returns true. --- ## Changelog - Added `Transform::is_finite` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |
Bevy Transform
This crate is largely a 1:1 port from legion_transform (ecs: legion, math: nalgebra) to bevy (ecs: bevy_ecs, math: glam)