import { asInt } from "@thi.ng/api/typedarray" ; /**
 * Filtered version of  rows2d , only including end points of
 * each row.
 *
 *  param cols param rows export function * rowEnds2d ( cols , rows = cols ) { [ cols , rows ] = asInt ( cols , rows ) ; cols -- ; for ( let y = 0 ; y < rows ; y ++ ) { yield [ 0 , y ] ; yield [ cols , y ] ; } }