make arc pickable

This commit is contained in:
Val Erastov 2014-10-10 00:55:47 -07:00
parent f33847197b
commit 5c144c0aff

View file

@ -67,7 +67,7 @@ TCAD.TWO.Arc.prototype.visit = function(h) {
};
TCAD.TWO.Arc.prototype.normalDistance = function(aim) {
return -1000;
return Math.abs(TCAD.math.distance(aim.x, aim.y, this.c.x, this.c.y) - this.radiusForDrawing());
};