Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/c/h/Chiplotle-0.4/chiplotle/geometry/shapes/random_walk_polar.py   Chiplotle(Download)
from chiplotle.geometry.core.path import Path
from chiplotle.tools.mathtools import polar_to_xy
import math
import random
 
      A = random.random() * two_pi
      r = step_size
      xy = polar_to_xy((r,A))
      the_points.append(xy)
 

src/c/h/Chiplotle-0.4/chiplotle/geometry/core/hpglformatvisitor.py   Chiplotle(Download)
   def _label_to_hpgl(self, label):
      from chiplotle.hpgl.label import Label
      from chiplotle.tools.mathtools import polar_to_xy
      import math
      angle = label.angle
                           linespace   = label.linespace,
                           origin      = origin,
                           direction   = polar_to_xy((1, angle))
                           )
      return [hpgl.PA([label.points[0]]), hpgllabel]