Skip to content

Instantly share code, notes, and snippets.

@johnmay
Created November 11, 2012 17:21
Show Gist options
  • Select an option

  • Save johnmay/4055585 to your computer and use it in GitHub Desktop.

Select an option

Save johnmay/4055585 to your computer and use it in GitHub Desktop.
transformPointDouble
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