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

Function Cardinal

docs/app/js/sanddance-app.js:125959–125962  ·  view source on GitHub ↗
(context, tension)

Source from the content-addressed store, hash-verified

125957 that._context.bezierCurveTo(that._x1 + that._k * (that._x2 - that._x0), that._y1 + that._k * (that._y2 - that._y0), that._x2 + that._k * (that._x1 - x), that._y2 + that._k * (that._y1 - y), that._x2, that._y2);
125958}
125959function Cardinal(context, tension) {
125960 this._context = context;
125961 this._k = (1 - tension) / 6;
125962}
125963Cardinal.prototype = {
125964 areaStart: function() {
125965 this._line = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected