pub fn tile_to_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_to_world_unchecked(transform, tile_pos))
    }
/// Converts a tile index to a it's world position.
///
/// The "position" of a tile in world space is it's bottom left corner.
/// Returns None if the position is out of bounds.
Converts a tile index to a it's world position.
The "position" of a tile in world space is it's bottom left corner.
Returns None if the position is out of bounds.
Converts a tile index to a it ' s world position . The " position " of a tile in world space is it ' s bottom left corner . Returns None if the position is out of bounds .
pub fn tile_to_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_to_world_unchecked(transform, tile_pos))
    }
pub fn tile_to_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_to_world_unchecked ( transform , tile_pos ) ) }
Converts a tile index to a it's world position.
Converts a tile index to a it ' s world position .
&self
transform
&GlobalTransform
tile_pos
[i32; 2]
&self
transform
&GlobalTransform
tile_pos
[i32; 2]