~bbot+core+developers/bbottheircbot/BBot_Githubt

« back to all changes in this revision

Viewing changes to libs/mathwiz.py

  • Committer: Aj00200
  • Date: 2012-07-31 01:18:25 UTC
  • Revision ID: git-v1:bdf40ce8307a5a0fa073b55dc4f52539224db528
Base, working Python 3 code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
146
146
    '''Base class for all quadrilaterals'''
147
147
    pass
148
148
 
149
 
class Square(Polygon, Quad):
 
149
class Square(Quad):
150
150
    def __init__(self, ax, ay, bx, by, cx, cy, dx, dy):
151
151
        self.coords = {'A':(ax, ay), 'B':(bx, by), 'C':(cx, cy), 'D':(dx, dy)}
152
152
        self.sides = {'ab':float(distance(ax, ay, bx, by)),