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

Function jitter

docs/app/js/sanddance-app.js:139644–139649  ·  view source on GitHub ↗
(x, y, r)

Source from the content-addressed store, hash-verified

139642 return true;
139643}
139644function jitter(x, y, r) {
139645 return [
139646 x + Math.sin(x + y) * r,
139647 y + Math.cos(x - y) * r
139648 ];
139649}
139650class Delaunay {
139651 static from(points, fx = pointX, fy = pointY, that) {
139652 return new Delaunay("length" in points ? flatArray(points, fx, fy, that) : Float64Array.from(flatIterable(points, fx, fy, that)));

Callers 1

_initMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected