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
311 def __sub__(self, val): argument
314 def __mul__(self, val): argument
326 def __div__(self, val): argument
352 def __add__(self, val): argument
355 def __sub__(self, val): argument
358 def __mul__(self, val): argument
361 def __div__(self, val): argument
403 def applyUnary(self, func): return Vec2(func(self.x), func(self.y)) argument
404 def applyBinary(self, func, other): return Vec2(func(self.x, other.x), func(self.y, other.y)) argument
406 def expandVec(self, val): return val.toVec2() argument
464 def __add__(self, val): argument
472 def __sub__(self, val): argument
475 def __mul__(self, val): argument
481 def __div__(self, val): argument
514 def applyUnary(self, func): return Vec3(func(self.x), func(self.y), func(self.z)) argument
515 …def applyBinary(self, func, other): return Vec3(func(self.x, other.x), func(self.y, other.y), func… argument
517 def expandVec(self, val): return val.toVec3() argument
581 def __add__(self, val): argument
589 def __sub__(self, val): argument
592 def __mul__(self, val): argument
598 def __div__(self, val): argument
633 def applyUnary(self, func): return Vec4(func(self.x), func(self.y), func(self.z), func(self.w)) argument
634 …def applyBinary(self, func, other): return Vec4(func(self.x, other.x), func(self.y, other.y), func… argument
636 def expandVec(self, val): return val.toVec4() argument
695 def __add__(self, val): argument
703 def __sub__(self, val): argument
706 def __mul__(self, val): argument
712 def __div__(self, val): argument
802 def compMul(self, val): argument