Converts a pixel's X coordinate into a horizontal tile index relative to a given tile grid layout specified by its X offset and tile width.
If tileWidth < 0, the results of this method are undefined. If tileWidth == 0, an ArithmeticException will be thrown.
@throws ArithmeticException If tileWidth == 0.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.