(x: number, min: number, max: number)
| 21 | } |
| 22 | |
| 23 | export function clamp(x: number, min: number, max: number): number { |
| 24 | return Math.min(max, Math.max(min, x)); |
| 25 | } |
| 26 | |
| 27 | // Note: the caller is responsible for ensuring that matrix dimensions make sense |
| 28 | export function multiplyMatrices<M extends Matrix>(m1: Matrix5x5, m2: Matrix5x5 | Matrix5x1): M { |
no outgoing calls
no test coverage detected
searching dependent graphs…