import { Rect } from 'geome'; import { mat2d, vec2 } from 'linearly'; import { SegmentLocation } from './Location.js'; import { PathL, VertexL } from './Path.js'; import { SegmentL } from './Segment.js'; import { PartialBy } from './utils.js'; type SimpleSegmentL = PartialBy; /** * A collection of functions to handle a line represented with {@link SegmentL}. * @category Modules */ export declare namespace Line { function bounds(line: SimpleSegmentL): Rect; function point(line: SimpleSegmentL, loc: SegmentLocation): vec2; function derivative(line: SimpleSegmentL): vec2; function tangent(line: SimpleSegmentL): vec2; function normal(line: SimpleSegmentL): vec2; const curvature = 0; function orientation(line: SimpleSegmentL, loc: SegmentLocation): mat2d; function trim(line: SimpleSegmentL, start: SegmentLocation, end: SegmentLocation): SegmentL; function divideAtTimes(line: SimpleSegmentL, times: Iterable): VertexL[]; /** * Returns true if the length of line segment is zero. */ function isZero(line: SimpleSegmentL): boolean; function offset(line: SimpleSegmentL, distance: number): PathL; /** * Converts a signed location to a time between 0 and 1. * @param line * @param loc * @returns */ function toTime(line: SimpleSegmentL, loc: SegmentLocation): number; } export {}; //# sourceMappingURL=Line.d.ts.map