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

Method add

packages/math/src/Vector2.ts:133–137  ·  view source on GitHub ↗

* 向量加法 * @param other 另一个向量 * @returns 当前向量实例(链式调用)

(other: Vector2)

Source from the content-addressed store, hash-verified

131 * @returns 当前向量实例(链式调用)
132 */
133 add(other: Vector2): this {
134 this.x += other.x;
135 this.y += other.y;
136 return this;
137 }
138
139 /**
140 * 向量减法

Callers 15

updateFunction · 0.45
toggleExpandFunction · 0.45
getPreviewTilesMethod · 0.45
floodFillMethod · 0.45
TileSetSelectorPanelFunction · 0.45
AssetPickerDialogFunction · 0.45
addListenerMethod · 0.45
createPidControllerMethod · 0.45
_handleCollisionMethod · 0.45
_applyBounceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected