• Identify the point closest to C on segment AB

    Parameters

    • c: Point

      The reference point C

    • a: Point

      Point A on segment AB

    • b: Point

      Point B on segment AB

    Returns Point

    The closest point to C on segment AB