diff options
-rw-r--r-- | src/api/Vector.py | 4 |
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)
|