ffi/vector.py
def as_array(self, dtype=np.float32): # {{{1
    "Create an np.array from the vector"
    if self._has_w:
      t = (self.x, self.y, self.z, self.w)
    else:
      t = (self.x, self.y, self.z)
    # Store to prevent gc crashes
    self._arr = np.array(t, dtype=dtype)
    return self._arr
Create an np.array from the vector
Create an np.array from the vector
Create an np . array from the vector
def as_array(self, dtype=np.float32): 
    if self._has_w:
      t = (self.x, self.y, self.z, self.w)
    else:
      t = (self.x, self.y, self.z)
    self._arr = np.array(t, dtype=dtype)
    return self._arr
def as_array ( self , dtype = np . float32 ) : if self . _has_w : t = ( self . x , self . y , self . z , self . w ) else : t = ( self . x , self . y , self . z ) self . _arr = np . array ( t , dtype = dtype ) return self . _arr
Create an np.array from the vector
Create an np . array from the vector
# {{{1 "Create an np.array from the vector" # Store to prevent gc crashes
self
dtype