chord

xripl.tubeTransmission.chord(radius, height)[source]

Calculates the horizontal chord length through a circle at a given height. If the height is larger than the circle’s radius, then a chord length of zero is returned.

radiusfloat

Radius of the circle. Must be in same units as height.

heightfloat

Height along the circle at which to calculate the horizontal chord length.