MCPcopy
hub / github.com/automeris-io/WebPlotDigitizer / addPoint

Method addPoint

app/javascript/core/calibration.js:49–59  ·  view source on GitHub ↗
(pxi, pyi, dxi, dyi, dzi)

Source from the content-addressed store, hash-verified

47 }
48
49 addPoint(pxi, pyi, dxi, dyi, dzi) {
50 let plen = this._px.length;
51 let dlen = this._dp.length;
52 this._px[plen] = pxi;
53 this._py[plen] = pyi;
54 this._dp[dlen] = dxi;
55 this._dp[dlen + 1] = dyi;
56 if (this._dimensions === 3) {
57 this._dp[dlen + 2] = dzi;
58 }
59 }
60
61 getPoint(index) {
62 if (index < 0 || index >= this._px.length)

Callers 10

mainFunction · 0.80
ToolFunction · 0.80
_deserializeVersion4Method · 0.80
map_axes_tests.jsFile · 0.80
xy_axes_tests.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected