Creates circle geometry
var createCircle = require('primitive-circle')
var circle = createCircle(1, 32)
//circle = { positions: [[x,y], ...], cells: [[0, 1], [1,2], ...] }
createCircle(r, segments)
r
- radius of the circlesegments
- number of segments the circle will be made ofReturns geometry object with positions [x, y] and cells [i, j]
Note: Points will be ordered clock-wise starting at 3pm
MIT, see LICENSE.md for details.