private Vector2f calculateTextureCoords() {
                float xMapping = 0;
                float yMapping = 0;
                
                if (tilePosition.width != 0 && tilePosition.height != 0) {
                        xMapping = Math.round(floorBoundaries.width/tilePosition.width) * tilePosition.width;
                        yMapping = Math.round(floorBoundaries.height/tilePosition.height) * tilePosition.height;
                        
                        if (xMapping == 0) {
							xMapping = tilePosition.width;
						}
			
						if (yMapping == 0) {
							yMapping = tilePosition.height;
						}
                }
                
                return new Vector2f(xMapping, yMapping);
        }