Returns true if point is within maxRange of line.
point
maxRange
line
import { Lines } from 'https://unpkg.com/ixfx/dist/geometry.js'const line = Lines.fromNumbers(0,20,20,20);Lines.withinRange(line, {x:0,y:21}, 1); // True Copy
import { Lines } from 'https://unpkg.com/ixfx/dist/geometry.js'const line = Lines.fromNumbers(0,20,20,20);Lines.withinRange(line, {x:0,y:21}, 1); // True
True if point is within range
Returns true if
point
is withinmaxRange
ofline
.