bevy/crates/bevy_camera
Tim 5d6d6343b9
Add doc examples to viewport_to_world(_2d) (#20096)
# Objective

Add doc examples to `viewport_to_world` and `viewport_to_world_2d`.
With `Single` and let chains these can be very concise now :) 

## Rendered:

<img width="1427" height="581" alt="image"
src="https://github.com/user-attachments/assets/e9de79fe-545f-4dd9-b9c4-77c8cb22de74"
/>

<img width="1427" height="581" alt="image"
src="https://github.com/user-attachments/assets/8c1d52ed-3423-4827-8120-c7720a79309c"
/>

I changed my mind on how much to limit the decimal places after taking
this screenshot. Hence the `:.0` instead of the actual `:.2`
2025-07-14 21:24:28 +00:00
..
src Add doc examples to viewport_to_world(_2d) (#20096) 2025-07-14 21:24:28 +00:00
Cargo.toml consistently dont use smallvec default features (#19972) 2025-07-06 04:25:26 +00:00
LICENSE-APACHE
LICENSE-MIT