X-Git-Url: https://git.yukkurigames.com/?p=python-bulletml.git;a=blobdiff_plain;f=bulletml%2Fparser.py;h=b39437ac8dd951d3c20def3b6523c2b68f12f1ed;hp=e2b7c800d03f7d30f5bb0d0fc1c04ee47120e24d;hb=dd06ecce6efd9815f6ff09f2a985738dd699288d;hpb=5733428dbb7033a5827013cd1f55894a99708bab diff --git a/bulletml/parser.py b/bulletml/parser.py index e2b7c80..b39437a 100644 --- a/bulletml/parser.py +++ b/bulletml/parser.py @@ -5,6 +5,8 @@ http://www.asahi-net.or.jp/~cs8k-cyu/bulletml/index_e.html from __future__ import division +import math + from xml.etree.ElementTree import ElementTree try: @@ -61,7 +63,7 @@ class Direction(object): return cls(element.get("type", default), NumberDef(element.text)) def __call__(self, params, rank): - return (self.value(params, rank), self.type) + return (math.radians(self.value(params, rank)), self.type) def __repr__(self): return "%s(%r, type=%r)" % (