Paste #34304: Edit of P#34302 - Edit of P#34299 - Edit of P#34298 - Untitled Paste

Date: 2016/06/16 19:01:30 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9


GetCircle:
  type: procedure
  definitions: center|radius|amount
  script:
  - define locations li@
  - define interval <util.tau.div[<def[amount]||360>]>
  - repeat <def[amount]||360>:
    - define locations <def[locations].include[<def[center].add[<def[value].mul[<def[interval]>].cos>,0,<def[value].mul[<def[interval]>].sin>]>]>
  - determine <def[locations]>