Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/api')
-rw-r--r--src/api/Vector.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/Vector.py b/src/api/Vector.py
index 523d04d..73a3055 100644
--- a/src/api/Vector.py
+++ b/src/api/Vector.py
@@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
-import math
from math import cos
from math import sin
+from math import sqrt
class CVector(object):
@@ -71,7 +71,7 @@ class CVector(object):
# Returns the magnitude of the vector.
def magnitude(self):
- return math.sqrt(self.x * self.x + self.y * self.y)
+ return sqrt(self.x * self.x + self.y * self.y)
def magnitudeSquared(self):
return (self.x * self.x + self.y * self.y)