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 toUint(lst): return [Uint(int(v.x)) for v in lst] argument
118 def toBool(lst): return [Scalar(bool(v.x)) for v in lst] argument
119 def toVec4(lst): return [v.toFloat().toVec4() for v in lst] argument
120 def toVec3(lst): return [v.toFloat().toVec3() for v in lst] argument
121 def toVec2(lst): return [v.toFloat().toVec2() for v in lst] argument
122 def toIVec4(lst): return [v.toInt().toVec4() for v in lst] argument
123 def toIVec3(lst): return [v.toInt().toVec3() for v in lst] argument
124 def toIVec2(lst): return [v.toInt().toVec2() for v in lst] argument
125 def toBVec4(lst): return [v.toBool().toVec4() for v in lst] argument
126 def toBVec3(lst): return [v.toBool().toVec3() for v in lst] argument
127 def toBVec2(lst): return [v.toBool().toVec2() for v in lst] argument
128 def toUVec4(lst): return [v.toUint().toUVec4() for v in lst] argument
129 def toUVec3(lst): return [v.toUint().toUVec3() for v in lst] argument
130 def toUVec2(lst): return [v.toUint().toUVec2() for v in lst] argument
131 def toMat2(lst): return [v.toMat2() for v in lst] argument
132 def toMat2x3(lst): return [v.toMat2x3() for v in lst] argument
133 def toMat2x4(lst): return [v.toMat2x4() for v in lst] argument
134 def toMat3x2(lst): return [v.toMat3x2() for v in lst] argument
135 def toMat3(lst): return [v.toMat3() for v in lst] argument
136 def toMat3x4(lst): return [v.toMat3x4() for v in lst] argument
137 def toMat4x2(lst): return [v.toMat4x2() for v in lst] argument
138 def toMat4x3(lst): return [v.toMat4x3() for v in lst] argument
139 def toMat4(lst): return [v.toMat4() for v in lst] argument
364 def fromScalarList(lst): argument
365 assert (len(lst) >= 1 and len(lst) <= 4)
366 if (len(lst) == 1): return Scalar(lst[0])
367 elif (len(lst) == 2): return Vec2(lst[0], lst[1])
368 elif (len(lst) == 3): return Vec3(lst[0], lst[1], lst[2])
369 else: return Vec4(lst[0], lst[1], lst[2], lst[3])