/// Converts a tile position into that tile's center in world space.
///
/// Returns None if the position is out of bounds.
Converts a tile position into that tile's center in world space.
Returns None if the position is out of bounds.
Converts a tile position into that tile ' s center in world space . Returns None if the position is out of bounds .
pub fn tile_to_tile_center_world(
        &self,
        transform: &GlobalTransform,
        tile_pos: [i32; 2],
    ) -> Option<Vec3> {
        let tile_pos = IVec2::from(tile_pos);
        if !self.tile_in_bounds(tile_pos) {
            return None;
        }
        Some(self.tile_center_world_unchecked(transform, tile_pos))
    }
pub fn tile_to_tile_center_world ( & self , transform : & GlobalTransform , tile_pos : [ i32 ; 2 ] , ) -> Option < Vec3 > { let tile_pos = IVec2 :: from ( tile_pos ) ; if ! self . tile_in_bounds ( tile_pos ) { return None ; } Some ( self . tile_center_world_unchecked ( transform , tile_pos ) ) }
Converts a tile position into that tile's center in world space.
Converts a tile position into that tile ' s center in world space .
&self
transform
&GlobalTransform
tile_pos
[i32; 2]