Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Sazhnev committed Aug 9, 2012
1 parent e2ae0e6 commit 56a76ad
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# -*- coding: utf-8 -*-

import string, math
import string
import math


STRF = lambda x: '%.6f' % x


# some code from chicken exporter
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 56a76ad

Please sign in to comment.