import { Vector2 } from "../../../../../Engine/Numerics/Vector2" ; export class OffsetMap { offsets : Vector2 [ ] ; constructor ( offsets ) { this . offsets = offsets ; } setOffsets ( offsets ) { this . offsets = offsets ; return this ; } getLocations ( location ) { let result = [ ] ; this . offsets . forEach ( ( offset ) => { result . push ( location . add ( offset ) ) ; } ) ; return result ; } }