Skip to content

Commit 28b876c

Browse files
committed
[css-transforms-2] Fix use of nonexistent variable.
Fix use of the nonexistent variable dot which was meant to be product, which was the result of calling the dot() function. Also remove a "* 1" while I'm there. Fixes w3c#911
1 parent 7141ff2 commit 28b876c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

css-transforms-2/Overview.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,8 +1170,8 @@ if (abs(product) == 1.0)
11701170
quaternionDst = quaternionA
11711171
return
11721172

1173-
theta = acos(dot)
1174-
w = sin(t * theta) * 1 / sqrt(1 - product * product)
1173+
theta = acos(product)
1174+
w = sin(t * theta) / sqrt(1 - product * product)
11751175

11761176
for (i = 0; i < 4; i++)
11771177
quaternionA[i] *= cos(t * theta) - product * w

0 commit comments

Comments
 (0)