diff options
author | rcoh <rcoh@mit.edu> | 2011-02-16 18:20:36 -0500 |
---|---|---|
committer | rcoh <rcoh@mit.edu> | 2011-02-16 18:20:36 -0500 |
commit | 2df9e408a0ff74539862c4a4e562a878cc11a329 (patch) | |
tree | f9388ceb03bf4fe5166c2c474b68e08733a4a54a /behaviors/Circle.py | |
parent | 83242972c09032eb89dd547f3ff3c4dcc2693555 (diff) |
Code cleanup. Made Oval behavior (circle with h/w).
Diffstat (limited to 'behaviors/Circle.py')
-rw-r--r-- | behaviors/Circle.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/behaviors/Circle.py b/behaviors/Circle.py index f3e103b..24d71f1 100644 --- a/behaviors/Circle.py +++ b/behaviors/Circle.py @@ -15,7 +15,7 @@ class Circle(Behavior): data[self['Id']+'Radius'] = self['Radius'] rad = data[self['Id']+'Radius'] cond = '>=' if self['Outside'] else '<=' - circleStr = 'math.sqrt(({x}-'+str(xLoc)+')**2+(({y}-'+str(yLoc)+')**2)*2)'+cond+str(rad) + circleStr = 'math.sqrt(({x}-'+str(xLoc)+')**2+(({y}-'+str(yLoc)+')**2))'+cond+str(rad) if self['Combine']: data['Location'] += ',' + circleStr else: |