def div(cls, a, b, dest=None):
     return RealPVector.div(a, b, dest)
Beispiel #2
0
def __div__(a, b):
    if isinstance(b, __pvector__):
        raise TypeError("The / operator can only be used to divide a PVector by a scalar")
    return __pvector__.div(a, float(b), None)
Beispiel #3
0
 def div(cls, a, b, dest=None):
     return RealPVector.div(a, b, dest)
Beispiel #4
0
 def div(cls, a, b, dest=None):
     return __pvector__.div(a, float(b), dest)
Beispiel #5
0
def __div__(a, b):
    if isinstance(b, __pvector__):
        raise TypeError("The / operator can only be used to divide a PVector by a scalar")
    return __pvector__.div(a, float(b), None)
Beispiel #6
0
 def div(cls, a, b, dest=None):
     return __pvector__.div(a, float(b), dest)
Beispiel #7
0
 def __div__(a, b):
     if not isinstance(b, Number):
         raise TypeError("The / operator can only be used to divide a PVector by a number")
     return PVector.div(a, float(b), None)
Beispiel #8
0
 def __instance_div__(self, f):
     PVector.div(self, f, self)