mirror of
https://github.com/anvaka/isect.git
synced 2026-01-18 14:32:26 +00:00
19 lines
296 B
TypeScript
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; |