Blue line => $ L/2 = \sqrt{R^2-D^2} $
Length $ = 2*(L/2)=2*\sqrt{R^2-D^2} $
let X be the length of chord