def Vectorize(v):
 if operator.isSequenceType(v):
  v = DirectX.Vector3(System.Single(v[0]), System.Single(v[1]), System.Single(v[2]))
 return v

def Vectorize ( v ) : if operator . isSequenceType ( v ) : v = DirectX . Vector3 ( System . Single ( v [ 0 ] ) , System . Single ( v [ 1 ] ) , System . Single ( v [ 2 ] ) ) return v
converts v from a sequence into a vector3 .