![]() # Objective Creating isometry types with just a translation is a bit more verbose than it needs to be for cases where you don't have an existing vector to pass in. ```rust let iso = Isometry3d::from_translation(Vec3::new(2.0, 1.0, -1.0)); ``` This could be made more ergonomic with a method similar to `Dir2::from_xy`, `Dir3::from_xyz`, and `Transform::from_xyz`: ```rust let iso = Isometry3d::from_xyz(2.0, 1.0, -1.0); ``` ## Solution Add `Isometry2d::from_xy` and `Isometry3d::from_xyz`. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |