navcat docs
    Preparing search index...

    Function closestPtSeg2d

    • Calculates the closest point on a line segment to a given point in 2D (XZ plane)

      Parameters

      • out: Vec3

        Output parameter for the closest point

      • pt: Vec3

        The point

      • p: Vec3

        First endpoint of the segment

      • q: Vec3

        Second endpoint of the segment

      Returns void