Function segmentIntersect

  • 线段相交

    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;
    }