From 92f75cd1693fcde3cce2a1ad44d09ebee480d12c Mon Sep 17 00:00:00 2001 From: Alan Aguiar Date: Thu, 20 Feb 2014 18:00:08 +0000 Subject: only import specific functions --- (limited to 'src/api') 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) -- cgit v0.9.1