MCPcopy Create free account
hub / github.com/galacean/engine / set

Method set

packages/core/src/utils/DisorderedArray.ts:59–64  ·  view source on GitHub ↗

* Set the element at the specified index. * @param index - The index of the element to be set * @param element - The element to be set

(index: number, element: T)

Source from the content-addressed store, hash-verified

57 * @param element - The element to be set
58 */
59 set(index: number, element: T): void {
60 if (index >= this.length) {
61 throw "Index is out of range.";
62 }
63 this._elements[index] = element;
64 }
65
66 /**
67 * Get the element at the specified index.

Callers 15

lossyWorldScaleMethod · 0.45
setPositionMethod · 0.45
setRotationMethod · 0.45
setRotationQuaternionMethod · 0.45
setScaleMethod · 0.45
setWorldPositionMethod · 0.45
setWorldRotationMethod · 0.45
worldForwardMethod · 0.45
worldRightMethod · 0.45
worldUpMethod · 0.45
translateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected