When cleaning up such code: - coil_radius = (mean_outer_diameter - wire_diameter)/2.; + coil_radius = (mean_outer_diameter - wire_diameter)/2.0;
Is it worth changing to: + coil_radius = 0.5 * (mean_outer_diameter - wire_diameter); I've always been taught to avoid div unless really needed, and a "/ 2" usually makes me wince when looking through code. (I know, maybe premature optimization, but...) Best, -Tom ------------------------------------------------------------------------------ Own the Future-Intel® Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d _______________________________________________ BRL-CAD Developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/brlcad-devel
