Lines Matching +defs:val +defs:func

170     def unary(func): return lambda val: val.applyUnary(func)  argument
173 def binary(func): return lambda a, b: (b.expandVec(a)).applyBinary(func, a.expandVec(b)) argument
176 def frac(val): return val.applyUnary(lambda x: x - math.floor(x)) argument
179 def exp2(val): return val.applyUnary(lambda x: math.pow(2.0, x)) argument
182 def log2(val): return val.applyUnary(lambda x: math.log(x, 2.0)) argument
185 def rsq(val): return val.applyUnary(lambda x: 1.0 / math.sqrt(x)) argument
188 def sign(val): return val.applyUnary(glslSign) argument
232 def applyUnary(self, func): return Scalar(func(self.x)) argument
233 def applyBinary(self, func, other): return Scalar(func(self.x, other.x)) argument
237 def expandVec(self, val): return val argument
305 def __add__(self, val): argument
309 def __sub__(self, val): argument
312 def __mul__(self, val): argument
324 def __div__(self, val): argument
350 def __add__(self, val): argument
353 def __sub__(self, val): argument
356 def __mul__(self, val): argument
359 def __div__(self, val): argument
401 def applyUnary(self, func): return Vec2(func(self.x), func(self.y)) argument
402 def applyBinary(self, func, other): return Vec2(func(self.x, other.x), func(self.y, other.y)) argument
404 def expandVec(self, val): return val.toVec2() argument
462 def __add__(self, val): argument
470 def __sub__(self, val): argument
473 def __mul__(self, val): argument
479 def __div__(self, val): argument
512 def applyUnary(self, func): return Vec3(func(self.x), func(self.y), func(self.z)) argument
513 …def applyBinary(self, func, other): return Vec3(func(self.x, other.x), func(self.y, other.y), func… argument
515 def expandVec(self, val): return val.toVec3() argument
579 def __add__(self, val): argument
587 def __sub__(self, val): argument
590 def __mul__(self, val): argument
596 def __div__(self, val): argument
631 def applyUnary(self, func): return Vec4(func(self.x), func(self.y), func(self.z), func(self.w)) argument
632 …def applyBinary(self, func, other): return Vec4(func(self.x, other.x), func(self.y, other.y), func… argument
634 def expandVec(self, val): return val.toVec4() argument
693 def __add__(self, val): argument
701 def __sub__(self, val): argument
704 def __mul__(self, val): argument
710 def __div__(self, val): argument
800 def compMul(self, val): argument