BimCT SDK / WebGL2 Viewer
    Preparing search index...

    Function computeIntersectionPoint2D

    • Computes the intersection point of two 2D lines.

      Parameters

      • x1: number

        The x-coordinate of the first point of the first line.

      • y1: number

        The y-coordinate of the first point of the first line.

      • x2: number

        The x-coordinate of the second point of the first line.

      • y2: number

        The y-coordinate of the second point of the first line.

      • x3: number

        The x-coordinate of the first point of the second line.

      • y3: number

        The y-coordinate of the first point of the second line.

      • x4: number

        The x-coordinate of the second point of the second line.

      • y4: number

        The y-coordinate of the second point of the second line.

      • pointOut: number[]

        The output array to store the intersection point.

      Returns boolean

      True if the lines intersect, false otherwise.