Home | History | Annotate | Download | only in classes

Lines Matching refs:fullcircle

18 # PolarToComplex([r [,phi [,fullcircle]]]) ->

19 # the complex number z for which r == z.radius() and phi == z.angle(fullcircle)
26 # z.angle([fullcircle]) -> angle from positive X axis; fullcircle gives units
27 # z.phi([fullcircle]) == z.angle(fullcircle)
82 def PolarToComplex(r = 0, phi = 0, fullcircle = twopi):
83 phi = phi * (twopi / fullcircle)
173 def angle(self, fullcircle = twopi):
174 return (fullcircle/twopi) * ((halfpi - math.atan2(self.re, self.im)) % twopi)