Lines Matching refs:lst
83 def shuffled(lst): argument
84 tmp = lst[:]
88 def repeatToLength(lst, toLength): argument
89 return (toLength / len(lst)) * lst + lst[: toLength % len(lst)]
93 def toFloat(lst): return [Scalar(float(v.x)) for v in lst] argument
94 def toInt(lst): return [Scalar(int(v.x)) for v in lst] argument
95 def toBool(lst): return [Scalar(bool(v.x)) for v in lst] argument
96 def toVec4(lst): return [v.toFloat().toVec4() for v in lst] argument
97 def toVec3(lst): return [v.toFloat().toVec3() for v in lst] argument
98 def toVec2(lst): return [v.toFloat().toVec2() for v in lst] argument
99 def toIVec4(lst): return [v.toInt().toVec4() for v in lst] argument
100 def toIVec3(lst): return [v.toInt().toVec3() for v in lst] argument
101 def toIVec2(lst): return [v.toInt().toVec2() for v in lst] argument
102 def toBVec4(lst): return [v.toBool().toVec4() for v in lst] argument
103 def toBVec3(lst): return [v.toBool().toVec3() for v in lst] argument
104 def toBVec2(lst): return [v.toBool().toVec2() for v in lst] argument
105 def toMat2(lst): return [v.toMat2() for v in lst] argument
106 def toMat3(lst): return [v.toMat3() for v in lst] argument
107 def toMat4(lst): return [v.toMat4() for v in lst] argument
284 def fromScalarList(lst): argument
285 assert (len(lst) >= 1 and len(lst) <= 4)
286 if (len(lst) == 1): return Scalar(lst[0])
287 elif (len(lst) == 2): return Vec2(lst[0], lst[1])
288 elif (len(lst) == 3): return Vec3(lst[0], lst[1], lst[2])
289 else: return Vec4(lst[0], lst[1], lst[2], lst[3])