pub fn native_px_align(&self, x: f64, y: f64) -> (f64, f64) {
        (
            (x / self.native_px).round() * self.native_px,
            (y / self.native_px).round() * self.native_px,
        )
    }
/// Convenience method for aligning an `(x, y)` position to the nearest native pixel boundaries.
///
/// This is typically used to align a camera position.
/// See also `self.native_px()`.
Convenience method for aligning an `(x, y)` position to the nearest native pixel boundaries.
This is typically used to align a camera position.
Convenience method for aligning an ` ( x y ) ` position to the nearest native pixel boundaries . This is typically used to align a camera position .
pub fn native_px_align(&self, x: f64, y: f64) -> (f64, f64) {
        (
            (x / self.native_px).round() * self.native_px,
            (y / self.native_px).round() * self.native_px,
        )
    }
pub fn native_px_align ( & self , x : f64 , y : f64 ) -> ( f64 , f64 ) { ( ( x / self . native_px ) . round ( ) * self . native_px , ( y / self . native_px ) . round ( ) * self . native_px , ) }
Convenience method for aligning an `(x, y)` position to the nearest native pixel boundaries.
Convenience method for aligning an ` ( x y ) ` position to the nearest native pixel boundaries .
&self
x
f64
y
f64
&self
x
f64
y
f64