Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
public class CoordsConverter2D { public static final float s_OFFSET = 0.5f; // Used instead of Math.round() public float xMin, xMax, deltaX, yMin, yMax, deltaY; public int width, height; public int posOffsetX, posOffsetY; // Internal offset of component; borders, etc. float additionalSize = 50f; float xScale, yScale; public CoordsConverter2D(int width, int height) { this.width = width; this.height = height; setScale(); deltaX = deltaY = 1.0f; } public CoordsConverter2D(int width, int height, float xMin, float xMax, float yMin, float yMax) { this.width = width; this.height = height; this.xMin = xMin; this.xMax = xMax; this.yMin = yMin; this.yMax = yMax; setScale(); deltaX = deltaY = 1.0f; } private void setScale() { xScale = ((float) width) / (xMax - xMin); yScale = ((float) height) / (yMax - yMin); } public void setPixels(int height, int width) { this.height = height; this.width = width; setScale(); } public void setCoords(float xMin, float xMax, float yMin, float yMax) { this.xMin = xMin; this.xMax = xMax; this.yMin = yMin; this.yMax = yMax; setScale(); } public void setDeltas(float deltaX, float deltaY) { this.deltaX = deltaX; this.deltaY = deltaY; } // coordsToPixels 2D -------------------------------------- public final void coordsToPixels(float x, float y, Tuple2f out) { out.x = (int) (xScale * (x - xMin) + s_OFFSET + posOffsetX); out.y = (int) (yScale * (yMax - y) + s_OFFSET + posOffsetY); } public final void coordsToPixels(Tuple2f v, Tuple2f out) { out.x = (int) (xScale * (v.x - xMin) + s_OFFSET + posOffsetX); out.y = (int) (yScale * (yMax - v.y) + s_OFFSET + posOffsetY); } public final void coordsToPixels(Tuple2f v, int xVal[], int yVal[], int index) { xVal[index] = (int)(xScale * (v.x - xMin) + s_OFFSET + posOffsetX); yVal[index] = (int)(yScale * (yMax - v.y) + s_OFFSET + posOffsetY); } // pixelsToCoords -------------------------------------- public final void pixelsToCoords(int x, int y, Tuple2f out) { out.x = (float) x / xScale + xMin; out.y = yMax - (float) y / yScale; } public final void pixelsToCoords(Tuple2f p, Tuple2f out) { out.x = p.x / xScale + xMin; out.y = yMax - p.y / yScale; } }