We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de28fd0 commit 885e4a2Copy full SHA for 885e4a2
crates/bevy_render/src/camera/camera.rs
@@ -106,7 +106,7 @@ impl Default for Camera {
106
impl Camera {
107
/// Converts a physical size in this `Camera` to a logical size.
108
#[inline]
109
- pub fn physical_to_logical(&self, input: UVec2) -> Option<Vec2> {
+ pub fn to_logical(&self, physical_size: UVec2) -> Option<Vec2> {
110
let scale = self.computed.target_info.as_ref()?.scale_factor;
111
Some((input.as_dvec2() / scale).as_vec2())
112
}
0 commit comments