MCPcopy Create free account
hub / github.com/microsoft/SandDance / circle

Function circle

docs/app/js/sanddance-app.js:132441–132454  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132439 x[0] *= (0, _mathJs.degrees), x[1] *= (0, _mathJs.degrees);
132440 }
132441 function circle() {
132442 var c = center.apply(this, arguments), r = radius.apply(this, arguments) * (0, _mathJs.radians), p = precision.apply(this, arguments) * (0, _mathJs.radians);
132443 ring = [];
132444 rotate = (0, _rotationJs.rotateRadians)(-c[0] * (0, _mathJs.radians), -c[1] * (0, _mathJs.radians), 0).invert;
132445 circleStream(stream, r, p, 1);
132446 c = {
132447 type: "Polygon",
132448 coordinates: [
132449 ring
132450 ]
132451 };
132452 ring = rotate = null;
132453 return c;
132454 }
132455 circle.center = function(_) {
132456 return arguments.length ? (center = typeof _ === "function" ? _ : (0, _constantJsDefault.default)([
132457 +_[0],

Callers 1

sanddance-app.jsFile · 0.70

Calls 1

circleStreamFunction · 0.70

Tested by

no test coverage detected