Created
November 11, 2012 17:21
-
-
Save johnmay/4055585 to your computer and use it in GitHub Desktop.
transformPointDouble
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public double[] transformPointDouble(double xCoord, double yCoord) { | |
| double[] src = new double[] {xCoord, yCoord}; | |
| double[] dest = new double[2]; | |
| this.transform.transform(src, 0, dest, 0, 1); | |
| return dest; | |
| } | |
| // ... used in the bounds calculation | |
| double[] p = this.transformPointDouble(x, y); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment