*angle mask swapped

This commit is contained in:
Jesse Boyd 2017-05-11 07:36:24 +10:00
parent f5feefdc83
commit acca995aa5
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -263,13 +263,13 @@ public class MaskCommands extends MethodCommands {
double y1,y2;
boolean override;
if (max.endsWith("d")) {
double y1d = Expression.compile(max.substring(0, max.length() - 1)).evaluate();
double y2d = Expression.compile(min.substring(0, min.length() - 1)).evaluate();
double y1d = Expression.compile(min.substring(0, min.length() - 1)).evaluate();
double y2d = Expression.compile(max.substring(0, max.length() - 1)).evaluate();
y1 = (Math.tan(y1d * (Math.PI / 180)));
y2 = (Math.tan(y2d * (Math.PI / 180)));
} else {
y1 = (Expression.compile(max).evaluate());
y2 = (Expression.compile(min).evaluate());
y1 = (Expression.compile(min).evaluate());
y2 = (Expression.compile(max).evaluate());
}
return new AngleMask(extent, y1, y2, overlay);
}