}
}
+ //#repeat width/height multiply_px/multiply_py horizontalBounds/verticalBounds
+ public long horizontalBounds(Affine a) {
+ // FIXME wrong
+ float min = Float.MAX_VALUE;
+ float max = Float.MIN_VALUE;
+ for(int i=0; i<numvertices; i++) {
+ min = Math.min(min, a.multiply_px(x[i], y[i]));
+ max = Math.max(max, a.multiply_px(x[i], y[i]));
+ }
+ return Encode.twoFloatsToLong(max, min);
+ }
+ //#end
+
public long transform(Affine a, boolean forReal) { return transform(a, forReal, true); }
public long transform(Affine a, boolean forReal, boolean widthheight) {
float minx = Integer.MAX_VALUE; float miny = Integer.MAX_VALUE;