fix ellipse picking

This commit is contained in:
Val Erastov 2016-11-30 02:33:22 -08:00
parent 0dc159eb1f
commit c29a46fc95

View file

@ -45,7 +45,7 @@ export class Ellipse extends SketchObject {
toEllipseCoordinateSystem(point) {
let x = point.x - this.centerX;
let y = point.y - this.centerY;
const angle = Math.atan2(y, x) + this.rotation;
const angle = Math.atan2(y, x) - this.rotation;
const distance = math.distance(0, 0, x, y);
x = distance * Math.cos(angle);
y = distance * Math.sin(angle);