Home | History | Annotate | Download | only in scripts

Lines Matching refs:lst

83 def shuffled(lst):
84 tmp = lst[:]
88 def repeatToLength(lst, toLength):
89 return (toLength / len(lst)) * lst + lst[: toLength % len(lst)]
93 def toFloat(lst): return [Scalar(float(v.x)) for v in lst]
94 def toInt(lst): return [Scalar(int(v.x)) for v in lst]
95 def toUint(lst): return [Uint(int(v.x)) for v in lst]
96 def toBool(lst): return [Scalar(bool(v.x)) for v in lst]
97 def toVec4(lst): return [v.toFloat().toVec4() for v in lst]
98 def toVec3(lst): return [v.toFloat().toVec3() for v in lst]
99 def toVec2(lst): return [v.toFloat().toVec2() for v in lst]
100 def toIVec4(lst): return [v.toInt().toVec4() for v in lst]
101 def toIVec3(lst): return [v.toInt().toVec3() for v in lst]
102 def toIVec2(lst): return [v.toInt().toVec2() for v in lst]
103 def toBVec4(lst): return [v.toBool().toVec4() for v in lst]
104 def toBVec3(lst): return [v.toBool().toVec3() for v in lst]
105 def toBVec2(lst): return [v.toBool().toVec2() for v in lst]
106 def toUVec4(lst): return [v.toUint().toUVec4() for v in lst]
107 def toUVec3(lst): return [v.toUint().toUVec3() for v in lst]
108 def toUVec2(lst): return [v.toUint().toUVec2() for v in lst]
109 def toMat2(lst): return [v.toMat2() for v in lst]
110 def toMat2x3(lst): return [v.toMat2x3() for v in lst]
111 def toMat2x4(lst): return [v.toMat2x4() for v in lst]
112 def toMat3x2(lst): return [v.toMat3x2() for v in lst]
113 def toMat3(lst): return [v.toMat3() for v in lst]
114 def toMat3x4(lst): return [v.toMat3x4() for v in lst]
115 def toMat4x2(lst): return [v.toMat4x2() for v in lst]
116 def toMat4x3(lst): return [v.toMat4x3() for v in lst]
117 def toMat4(lst): return [v.toMat4() for v in lst]
344 def fromScalarList(lst):
345 assert (len(lst) >= 1 and len(lst) <= 4)
346 if (len(lst) == 1): return Scalar(lst[0])
347 elif (len(lst) == 2): return Vec2(lst[0], lst[1])
348 elif (len(lst) == 3): return Vec3(lst[0], lst[1], lst[2])
349 else: return Vec4(lst[0], lst[1], lst[2], lst[3])