Home > decentraland-ecs > Vector3 > FromArray
Returns a new Vector3 set from the index "offset" of the given array
Signature:
static FromArray(array: ArrayLike<number>, offset?: number): Vector3;
Returns: Vector3
the new Vector3
Parameter | Type | Description |
---|---|---|
array |
ArrayLike<number> |
defines the source array |
offset |
number |
defines the offset in the source array |