Does Graphics.translate() also change the orientation of the coordinate system? <br><br>The method that I talk about would not change the coordinate system, it would only map the coordinates we understand to the inverse ones.....<br><br>Here is the class that was used in my compsci course:<br><br> /* A class to set up a window in a world coordinate system.<br> The window is defined by its lower left corner (xl,yb) and its upper <br> right corner (xr,yt), and it is mapped to a default user coordinate system <br> with origin (0,0) at the top left corner and lower right corner at (w-1,y-1).<br>*/<br> <br>public class CoordinateSystem<br>{<br> private double xLeft, xRight;<br> private double yBottom, yTop;<br> private double width, height;<br> private double scaleX, scaleY;<br><br> /**<br> Construct a coordinate system and mapping from a world coordinate system<br> window defined by lower left corner (x1,yb) and upper right corner (xr,yt) <br> to a default user space window defined by origin (0,0) at top left corner<br> and lower right corner at (w-1,h-1).<br> */ <br> public CoordinateSystem(double xl, double xr, double yb, double yt,<br> double w, double h)<br> {<br> xLeft = xl; <br> xRight = xr;<br> yBottom = yb; <br> yTop = yt;<br> width = w; <br> height = h;<br> scaleX = (width - 1.0) / (xRight - xLeft);<br> scaleY = (height - 1.0) / (yBottom - yTop);<br> }<br><br> /**<br> Map world coordinate x value to user space value.<br> @param x the world x coordinate to map<br> @returns the x coordinate in user space.<br> */<br> public double x(double x)<br> {<br> return (x - xLeft) * scaleX;<br> }<br><br><br> /**<br> Map world coordinate y value to user space value.<br> @param y the world y coordinate to map<br> @returns the y coordinate in user space.<br> */<br> public double y(double y)<br> {<br> return (y - yTop) * scaleY;<br> }<br>}<br><br><br> <p> fenris<br><a href=mailto:fenris@hotmail.com>fenris@hotmail.com</a><br><a href= > </a><br>