diff options
author | Alan Aguiar <alanjas@hotmail.com> | 2012-03-05 03:19:54 (GMT) |
---|---|---|
committer | Alan Aguiar <alanjas@hotmail.com> | 2012-03-05 03:19:54 (GMT) |
commit | 1e7363700728c530d0e48b962cf82faf94204545 (patch) | |
tree | 12d364e8ce58567ff0f0f3457a1d990f8d84fba1 /src/api/Vector.py | |
parent | b1c7e612e65cc482cda97453b1498106a023337e (diff) |
make some changes in api files
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;
|