import math as mth class Vector(): def __init__(self,x,y,z): self.x=x self.y=y self.z=z def getX(self): return self,x def getY(self): return self.y def getZ(self): return self.z def magnitude(self): return mth.sqrt((self.x**2) + (self.y**2) + (self.z**2)) def dot(self,otherVector): return (self.x*otherVector.x)+(self.y*otherVector.y)+(self.z*otherVector.z) def __add__(self, otherVector): newX = self.x + otherVector.x newY = self.y + otherVector.y newZ = self.z + otherVector.z return Vector(newX,newY,newZ)