MCPcopy
hub / github.com/fabricjs/fabric.js / add

Method add

src/Point.ts:36–38  ·  view source on GitHub ↗

* Adds another point to this one and returns another one * @param {XY} that * @return {Point} new Point instance with added values

(that: XY)

Source from the content-addressed store, hash-verified

34 * @return {Point} new Point instance with added values
35 */
36 add(that: XY): Point {
37 return new Point(this.x + that.x, this.y + that.y);
38 }
39
40 /**
41 * Adds another point to this one

Callers 15

rotateMethod · 0.95
collectObjectsMethod · 0.95
handleSelectionMethod · 0.95
calcBoundingBoxFunction · 0.95
eventManagerFunction · 0.45
createBatchCommandsFunction · 0.45
event.jsFile · 0.45
appendResultsFunction · 0.45
canvas.jsFile · 0.45
updateActiveSelectionFunction · 0.45
assertCanvasDisposingFunction · 0.45
testCanvasDisposingFunction · 0.45

Calls

no outgoing calls

Tested by 1

testFunction · 0.36