A Treatise on Textile Calculations and the Structure of Fabrics