Lines Matching refs:lst
105 def shuffled(lst): argument
106 tmp = lst[:]
110 def repeatToLength(lst, toLength): argument
111 return (toLength / len(lst)) * lst + lst[: toLength % len(lst)]
115 def toFloat(lst): return [Scalar(float(v.x)) for v in lst] argument
116 def toInt(lst): return [Scalar(int(v.x)) for v in lst] argument
117 def toBool(lst): return [Scalar(bool(v.x)) for v in lst] argument
118 def toVec4(lst): return [v.toFloat().toVec4() for v in lst] argument
119 def toVec3(lst): return [v.toFloat().toVec3() for v in lst] argument
120 def toVec2(lst): return [v.toFloat().toVec2() for v in lst] argument
121 def toIVec4(lst): return [v.toInt().toVec4() for v in lst] argument
122 def toIVec3(lst): return [v.toInt().toVec3() for v in lst] argument
123 def toIVec2(lst): return [v.toInt().toVec2() for v in lst] argument
124 def toBVec4(lst): return [v.toBool().toVec4() for v in lst] argument
125 def toBVec3(lst): return [v.toBool().toVec3() for v in lst] argument
126 def toBVec2(lst): return [v.toBool().toVec2() for v in lst] argument
127 def toMat2(lst): return [v.toMat2() for v in lst] argument
128 def toMat3(lst): return [v.toMat3() for v in lst] argument
129 def toMat4(lst): return [v.toMat4() for v in lst] argument
306 def fromScalarList(lst): argument
307 assert (len(lst) >= 1 and len(lst) <= 4)
308 if (len(lst) == 1): return Scalar(lst[0])
309 elif (len(lst) == 2): return Vec2(lst[0], lst[1])
310 elif (len(lst) == 3): return Vec3(lst[0], lst[1], lst[2])
311 else: return Vec4(lst[0], lst[1], lst[2], lst[3])