Function chordLength

  • Determine the length of a chord of a circle. (There is a simple formula; derive it or look it up.)

    Returns

    the length of the chord subtended by the given angle in a circle of the given radius

    Parameters

    • radius: number

      radius of a circle, must be > 0

    • angle: number

      in radians, where 0 <= angle < Math.PI

    Returns number

Generated using TypeDoc