#ifndef UTIL_H_ # define UTIL_H_ namespace Util { // ---------------------------------------------------------------- // The constant pi // ---------------------------------------------------------------- extern const double pi; // ---------------------------------------------------------------- // d2r - Convert 'degrees' to radians // ---------------------------------------------------------------- double d2r(double degrees); // ---------------------------------------------------------------- // rnd - Round 'x' to the nearest integer // ---------------------------------------------------------------- int rnd(double x); } #endif