Function segmentIntersect
- segmentIntersect(x1, y1, x2, y2, x3, y3, x4, y4): {
ratio?: undefined;
result: string;
status: boolean;
x?: undefined;
y?: undefined;
} | {
ratio: number;
result?: undefined;
status: boolean;
x: number;
y: number;
} Parameters
x1: number
y1: number
x2: number
y2: number
x3: number
y3: number
x4: number
y4: number
Returns {
ratio?: undefined;
result: string;
status: boolean;
x?: undefined;
y?: undefined;
} | {
ratio: number;
result?: undefined;
status: boolean;
x: number;
y: number;
}
线段相交