Skip to content

Commit 4ae2011

Browse files
author
Dan Sanders
committed
Specify rounding behavior
1 parent 25c6e3e commit 4ae2011

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.src.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4137,7 +4137,8 @@
41374137
6. Assign a new {{VideoFrameMetadata}} to |frame|.{{VideoFrame/[[metadata]]}}.
41384138

41394139
: <dfn for=VideoFrame>Parse Rotation</dfn> (with |rotation|)
4140-
:: 1. Let |alignedRotation| be the nearest multiple of `90` to |rotation|.
4140+
:: 1. Let |alignedRotation| be the nearest multiple of `90` to |rotation|,
4141+
rounding ties towards positive infinity.
41414142
2. Let |fullTurns| be the greatest multiple of `360` less than or equal to
41424143
|alignedRotation|.
41434144
3. Return `|alignedRotation| - |fullTurns|`.

0 commit comments

Comments
 (0)