BimCT SDK / WebGL2 Viewer
    Preparing search index...

    Function computePerpendicularPointOnLine

    • Computes the perpendicular point on a line.

      Parameters

      • line: number[]

        The line defined by two points [x1, y1, z1, x2, y2, z2].

      • p: number[]

        The point [x, y, z].

      • intersection: number[]

        The output array to store the intersection point.

      • OptionalrestrictToSegment: boolean = true

        Whether to restrict the intersection to the line segment.

      Returns boolean

      True if the computation is successful, false otherwise.