isect/index.d.ts
2018-10-05 21:11:57 -07:00

19 lines
296 B
TypeScript

export type Point = {
x: number,
y: number
}
export type Segment = {
from: Point,
to: Point
}
export type ISectResults = {
run: Function,
step: Function
}
export type ISectOptions = {
}
export default function isect(segments: Array<Segment>, options: ISectOptions) : ISectResults;