def __init__(self,r=0,phi=0,theta=0): """ Initializes the vector by default to 0,0,0 """ order = ["r","phi","theta"] values = {"r":float(r), "phi":float(phi), "theta":float(theta)} CoordinateVector.__init__(self,order,values)
def __init__(self,rho=0,phi=0,z=0): """ Initializes the vector by default to 0,0,0 """ order = ["rho","phi","z"] values = {"rho":float(rho), "phi":float(phi), "z":float(z)} CoordinateVector.__init__(self,order,values)
def __init__(self,x=0,y=0,z=0): """ Initializes the vector by default to 0,0,0 """ order = ["x","y","z"] values = {"x":float(x), "y":float(y), "z":float(z)} CoordinateVector.__init__(self,order,values)