リビジョン 6b81b8b1
| AnalogClockDrawing/src/analogclock/AnalogClockDrawing.java | ||
|---|---|---|
|
}
|
||
|
|
||
|
private int getMinuteAgnel(LocalTime time) {
|
||
|
return (int) (time.getMinute() + time.getSecond() / 60d) * 360 / 60;
|
||
|
return (int) ((time.getMinute() + time.getSecond() / 60d) * 360 / 60);
|
||
|
}
|
||
|
|
||
|
private int getHourAngle(LocalTime time) {
|
||
|
return (int) (time.getHour() % 12 + time.getMinute() / 60d + time.getSecond() / 3600d) * 360 / 12;
|
||
|
return (int) ((time.getHour() % 12 + time.getMinute() / 60d + time.getSecond() / 3600d) * 360 / 12);
|
||
|
}
|
||
|
|
||
|
}
|
||
時・分の開始角度計算の間違いを修正