Function shapeDistanceCircleLine

Returns the distance between a circle and a line.

  • Parameters

    • c: Vec2

      center of the circle

    • r: Num

      radius of the circle

    • start: Vec2

      start point of line

    • end: Vec2

      end point of line

    Returns Num

    The distance between the circle and the line