Static function for converting degress to radians (Note: pi = 180 degrees)
static double toRadian(double degree) { return (degree * pi) / 180; }