Next / Previous / Contents / Shipman's homepage

7.6. Pt.bearing(): What is the angle to another point?

homcoord.py
# - - -   P t . b e a r i n g

    def bearing(self, p):
        '''What is the bearing angle from self to p?
        '''
        return num.arctan2(p.y()-self.y(), p.x()-self.x())