Home | History | Annotate | Download | only in scripts

Lines Matching refs:lst

105 def shuffled(lst):
106 tmp = lst[:]
110 def repeatToLength(lst, toLength):
111 return (toLength / len(lst)) * lst + lst[: toLength % len(lst)]
115 def toFloat(lst): return [Scalar(float(v.x)) for v in lst]
116 def toInt(lst): return [Scalar(int(v.x)) for v in lst]
117 def toUint(lst): return [Uint(int(v.x)) for v in lst]
118 def toBool(lst): return [Scalar(bool(v.x)) for v in lst]
119 def toVec4(lst): return [v.toFloat().toVec4() for v in lst]
120 def toVec3(lst): return [v.toFloat().toVec3() for v in lst]
121 def toVec2(lst): return [v.toFloat().toVec2() for v in lst]
122 def toIVec4(lst): return [v.toInt().toVec4() for v in lst]
123 def toIVec3(lst): return [v.toInt().toVec3() for v in lst]
124 def toIVec2(lst): return [v.toInt().toVec2() for v in lst]
125 def toBVec4(lst): return [v.toBool().toVec4() for v in lst]
126 def toBVec3(lst): return [v.toBool().toVec3() for v in lst]
127 def toBVec2(lst): return [v.toBool().toVec2() for v in lst]
128 def toUVec4(lst): return [v.toUint().toUVec4() for v in lst]
129 def toUVec3(lst): return [v.toUint().toUVec3() for v in lst]
130 def toUVec2(lst): return [v.toUint().toUVec2() for v in lst]
131 def toMat2(lst): return [v.toMat2() for v in lst]
132 def toMat2x3(lst): return [v.toMat2x3() for v in lst]
133 def toMat2x4(lst): return [v.toMat2x4() for v in lst]
134 def toMat3x2(lst): return [v.toMat3x2() for v in lst]
135 def toMat3(lst): return [v.toMat3() for v in lst]
136 def toMat3x4(lst): return [v.toMat3x4() for v in lst]
137 def toMat4x2(lst): return [v.toMat4x2() for v in lst]
138 def toMat4x3(lst): return [v.toMat4x3() for v in lst]
139 def toMat4(lst): return [v.toMat4() for v in lst]
364 def fromScalarList(lst):
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])