import { Vec2 } from '@lib/model' ; export interface Range { from : number ; to : number ; } export function * range ( xRange , yRange ) { for ( let x = xRange . from ; x <= xRange . to ; x ++ ) { for ( let y = yRange . from ; y <= yRange . to ; y ++ ) { yield new Vec2 ( x , y ) ; } } }