UNPKG

fqtree

Version:

a flexible quadtree for JavaScript/TypeScript

12 lines 580 B
import type { LineRange, IRange } from './range'; /** * the algorithm divides a two-dimensional space into 9 regions and then * efficiently determines the lines and portions of lines that are visible * in the central region of interest (the viewport). * https://en.wikipedia.org/wiki/Cohen-Sutherland_algorithm * @param line - Parameter description. * @param bounds - a rectangular range. * @returns true if the line segment clips the viewport false if not. */ export declare const csClip: (line: LineRange, bounds: IRange) => boolean; //# sourceMappingURL=csclip.d.ts.map