diff options
Diffstat (limited to 'src/api/Vector.py')
-rwxr-xr-x | src/api/Vector.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/api/Vector.py b/src/api/Vector.py index bae033c..bbe6580 100755 --- a/src/api/Vector.py +++ b/src/api/Vector.py @@ -5,8 +5,8 @@ EPSILON = 0.000001 class CVector(object):
- x = 0.0
- y = 0.0
+ #x = 0.0
+ #y = 0.0
def __init__(self, aX = 0.0, aY = 0.0):
self.x = aX
@@ -24,6 +24,14 @@ class CVector(object): # Sets the y value of the vector.
def setY(self, aY):
self.y = aY
+
+ # Gets the x value of the vector
+ def getX(self):
+ return self.x
+
+ # Gets the y value of the vector
+ def getY(self):
+ return self.y
def setVec(self, aVec):
self.x = aVec.x;
|