Skip to content

Commit 04e71f3

Browse files
committed
原稿 : 時計の短針の計算ミスを修正
1 parent 4fbd6b8 commit 04e71f3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/clock.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ sShape.rotation = s * (360 / 60);
126126
// 分針
127127
mShape.rotation = m * (360 / 60);
128128
// 短針 (短針は時間だけでなく分も角度に考慮する)
129-
hShape.rotation = h * (360 / 24 / 2) + m * (360 / 24 / 60);
129+
hShape.rotation = h * (360 / (24 / 2)) + m * (360 / 24 / 60);
130130
```
131131

132132

@@ -209,4 +209,4 @@ for (var i = 0; i < steps; i++) {
209209

210210
<article-author>[池田 泰延](https://twitter.com/clockmaker)</article-author>
211211
<article-date-published>2015-11-30</article-date-published>
212-
<article-date-modified>2015-12-17</article-date-modified>
212+
<article-date-modified>2016-07-20</article-date-modified>

0 commit comments

Comments
 (0)