- reduce(v: Vector, func: ((s: number, c: number, i: number) => number), r?: number): number
-
Parameters
-
-
func: ((s: number, c: number, i: number) => number)
-
- (s: number, c: number, i: number): number
-
Parameters
-
s: number
-
c: number
-
i: number
Returns number
-
r: number = 0
Returns number
Reduce a vector to a single value using the provided reduce function.