(baseRotation: number, baseFlip: boolean, rotation: number)
| 1082 | }; |
| 1083 | |
| 1084 | const AddRotations = (baseRotation: number, baseFlip: boolean, rotation: number): number => { |
| 1085 | // 1. If baseFlip is false, let combinedRotation be |baseRotation| + |rotation|. |
| 1086 | const combinedRotation = baseFlip ? baseRotation - rotation : baseRotation + rotation; |
| 1087 | // 2. Let fullTurns be the greatest multiple of 360 less than or equal to combinedRotation. |
| 1088 | const fullTurns = Math.floor(combinedRotation / 360) * 360; |
| 1089 | // 3. Return |combinedRotation| - |fullTurns|. |
| 1090 | return Math.abs(combinedRotation) - Math.abs(fullTurns); |
| 1091 | }; |
| 1092 | |
| 1093 | const ValidateVideoFrameInit = ( |
| 1094 | init: VideoFrameInit, |
no outgoing calls
no test coverage detected