UNPKG

mertan

Version:

geometrical operations

9 lines (8 loc) 247 B
function same_direction(d){ return d.reduce(function(c,v){ return v == INF || v == ORG ? c : c == undefined ? v : v != c ? false : c }, undefined) }