MCPcopy Create free account
hub / github.com/esengine/esengine / add

Method add

packages/node-editor/src/domain/value-objects/Position.ts:26–28  ·  view source on GitHub ↗

* Creates a new Position by adding offset * 通过添加偏移量创建新的位置

(offset: Position)

Source from the content-addressed store, hash-verified

24 * 通过添加偏移量创建新的位置
25 */
26 add(offset: Position): Position {
27 return new Position(this._x + offset._x, this._y + offset._y);
28 }
29
30 /**
31 * Creates a new Position by subtracting another position

Callers 2

NodeContextMenuFunction · 0.45
NodeEditorFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected