I believe that we may have had a first yesterday; the coder behind yesterday's post offered a perfectly reasonable explanation: one-time use with a tight deadline. Fair enough. Now I really want to see Isaac's coworker offer some sort of explanation for this ... seriously ...
const double Pi = 3.14159265358979323846264; const double TWO_Pi = Pi*2.0; const double HALF_Pi = Pi/2.0; const double QUARTER_Pi = Pi/4.0; const double Deg2Rad = Pi/180.0; const double Rad2Deg = 180.0/Pi; const float fDeg2Rad = static_cast(Deg2Rad); const float fRad2Deg = static_cast(Rad2Deg); const double OneThird = 1.0/3.0; const double One3point6th = 1.0/3.6; const double OneTwelfth = 1.0/12.0; const double OneThirtysixth = 1.0/36.0; const double One1760th = 1.0/1760; const double One5280th = 1.0/5280; const double One63360th = 1.0/63360.0; const double One25Pt4th = 1.0/25.4; // 0.0393700787401575 mm -> inches const double One2Pt54th = 1.0/2.54; // 0.393700787401575 cm -> inches const double OnePt0254th = 1.0/0.0254; // 39.3700787401575 m -> inches const double OnePt0000254th = 1.0/0.0000254; // 39370.0787401575 km -> inches const double One2Pt20462262185th = 1.0/2.20462262185; // 0.453592369999748 Lbs-> Kg const double One304Pt8th = 1.0/304.8; // 0.00328083989501312 mm -> feet const double One30Pt48th = 1.0/30.48; // 0.0328083989501312 cm -> feet const double OnePt3048th = 1.0/.3048; // 3.28083989501312 m -> feet const double OnePt0003048th = 1.0/.0003048; // 3280.83989501312 km -> feet const double One914Pt4th = 1.0/914.4; // 0.00109361329833771 mm -> yards const double One91Pt44th = 1.0/91.44; // 0.0109361329833771 cm -> yards const double OnePt9144th = 1.0/.9144; // 1.09361329833771 m -> yards const double OnePt0009144th = 1.0/.0009144; // 1093.61329833771 km -> yards const double One1609344th = 1.0/1609344; // 0.000000621371192237334 mm -> Miles const double One160934Pt4th = 1.0/160934.4; // 0.00000621371192237334 cm -> Miles const double One1609Pt344th = 1.0/1609.344; // 0.000621371192237334 m -> Miles const double One1Pt609344th = 1.0/1.609344; // 0.621371192237334 km -> Miles const double One4Pt44822th = 1.0/4.44822161525; // 0.224808943100241 Nt -> LbForce const double OnePt737562th = 1.0/0.7375621493; // 1.35581794828961 FtLbs -> NtM const double OnePt44704th = 1.0/0.44704; // 2.2369362920544 Mps -> Mph const double One3Pt785411th = 1.0/3.78541178401; // 0.264172052357451 Liters -> Gallons inline double Inches2Feet( const double &i ) { return i*OneTwelfth; } // 1/12 inline double Inches2Yards( const double &i ) { return i*OneThirtysixth; } // 1/36 inline double Inches2Miles( const double &i ) { return i*One63360th; } // 1/63360.0 inline double Inches2MM( const double &i ) { return i*25.4; } inline double Inches2CM( const double &i ) { return i*2.54; } inline double Inches2Meters( const double &i ) { return i*.0254; } inline double Inches2KM( const double &i ) { return i*.0000254; } //[Ed: Snip] inline double CM2MM( const double &cm ) { return cm*10.0; } inline double CM2Meters( const double &cm ) { return cm*.01; } inline double CM2KM( const double &cm ) { return cm*.00001; } inline double CM2Inches( const double &cm ) { return cm*One2Pt54th; } // 0.393700787401575 inline double CM2Feet( const double &cm ) { return cm*One30Pt48th; } // 0.0328083989501312 inline double CM2Yards( const double &cm ) { return cm*One91Pt44th; } // 0.0109361329833771 inline double CM2Miles( const double &cm ) { return cm*One160934Pt4th; } // 0.00000621371192237334 inline double Meters2MM( const double &m ) { return m*1000.0; } inline double Meters2CM( const double &m ) { return m*100.0; } inline double Meters2KM( const double &m ) { return m*.001; } inline double Meters2Inches( const double &m ) { return m*OnePt0254th; } // 39.3700787401575 inline double Meters2Feet( const double &m ) { return m*OnePt3048th; } // 3.28083989501312 inline double Meters2Yards( const double &m ) { return m*OnePt9144th; } // 1.09361329833771 inline double Meters2Miles( const double &m ) { return m*One1609Pt344th; } // 0.000621371192237334 //[Ed: Snip, full file]
[Advertisement]
BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!