MCPcopy Create free account
hub / github.com/beutton/browser-flight-simulator / fromArray

Method fromArray

packages/core/src/Rectangle.ts:75–81  ·  view source on GitHub ↗
(array: readonly number[], offset = 0)

Source from the content-addressed store, hash-verified

73 }
74
75 fromArray(array: readonly number[], offset = 0): this {
76 this.west = array[offset]
77 this.south = array[offset + 1]
78 this.east = array[offset + 2]
79 this.north = array[offset + 3]
80 return this
81 }
82
83 toArray(array: number[] = [], offset = 0): number[] {
84 array[offset] = this.west

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected