From 56a76ad3b2b53b127b70ede9236a178802a7c936 Mon Sep 17 00:00:00 2001 From: Igor Sazhnev Date: Thu, 9 Aug 2012 19:24:48 +0300 Subject: [PATCH] small fixes --- utils.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/utils.py b/utils.py index d3c4c60..8d3da5c 100644 --- a/utils.py +++ b/utils.py @@ -1,6 +1,10 @@ # -*- coding: utf-8 -*- -import string, math +import string +import math + + +STRF = lambda x: '%.6f' % x # some code from chicken exporter @@ -40,9 +44,10 @@ def get_matrix(t): (0, 0, 1, 0), (t[0], t[1], t[2], 1)) + def radians_to_degrees(rads): return (rads[0] * 180 / math.pi, rads[1] * 180 / math.pi, rads[2] * 180 / math.pi) - + ############################################################ # Egg Writing Functions