linearCombination MethodStatic
Compute the linear combination s of the numbers and scales.
linearCombination(data: number[], scales: number[]): number
@returns s = sum(d_i * s_i), where i ranges from 0 to min(data.length, scales.length).
| Parameter | Type | Description | 
|---|---|---|
| data | number[] | array of numbers d_i. | 
| scales | number[] | array of scales s_i. For best results, scalesshould have the same length asdata. | 
Returns - number
s = sum(d_i * s_i), where i ranges from 0 to min(data.length, scales.length).
Defined in
- geometry3d/PointHelpers.ts Line 282
Last Updated: 24 June, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.