clemsos/feeling-wheel — Issue #4: Cannot get the starting angle offset clickable 
Author: clemsos
Created: 2012-02-11 16:40:46+00:00
State: open

I have implemented a starting angle for the wheel to be drawn.

Sadly the zone that is draw within this offset is not clickable by mouse.
I had investigate but find no solution yet

canvas.js - l.68

```javascript
// the offset value is stored in Shape.s

// Determine if a point is inside the shape's bounds
Shape.prototype.contains = function(mr, mt) {

var offset = Math.PI;
if( this.iR < mr && mr < this.oR && this.sA-offset < mt && mt < this.eA-offset ) {
return true;
} else {
return false;
}
}

```

```javascript
var mouse = myState.getMouse(e);
var mx = mouse.x;
var my = mouse.y; // mx, my

// Get mouse polar coord
var mx = 250-mx , my = 250-my ; // align mouse origin to circle center
var mr = Math.sqrt(mx*mx + my*my); // get mouse radius
var mt = Math.atan2(my,mx); // get mouse angle
```