Skip to content

Commit

Permalink
GEOT-4373 Minor fix in GeometryBuilder.ellipse
Browse files Browse the repository at this point in the history
  • Loading branch information
mbedward committed Jan 21, 2013
1 parent 777676f commit 2d7ff13
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -318,7 +318,7 @@ public Polygon ellipse(double x1, double y1, double x2, double y2, int nsides) {
double rx = Math.abs(x2 - x1) / 2;
double ry = Math.abs(y2 - y1) / 2;
double cx = Math.min(x1, x2) + rx;
double cy = Math.min(x1, x2) + ry;
double cy = Math.min(y1, y2) + ry;

double[] ord = new double[2 * nsides + 2];
double angInc = 2 * Math.PI / nsides;
Expand Down

0 comments on commit 2d7ff13

Please sign in to comment.