Documentation ¶
Overview ¶
Package clockface provides functions that calculate the positions of the hands. of an analogue clock,.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HoursInRadians ¶
HoursInRadians returns the angle of the hour hand from 12 o'clock in radians.
func MinutesInRadians ¶
MinutesInRadians returns the angle of the minute hand from 12 o'clock in radians.
func SecondsInRadians ¶
SecondsInRadians returns the angle of the second hand from 12 o'clock in radians.
Types ¶
type Point ¶
A Point is a Cartesian coordinate. They are used in the package. to represent the unit vector from the origin of a clock hand.
func HourHandPoint ¶
HourHandPoint is the unit vector of the hour hand at time `t`,. represented a Point.
func MinuteHandPoint ¶
MinuteHandPoint is the unit vector of the minute hand at time `t`,. represented a Point.
func SecondHandPoint ¶
SecondHandPoint is the unit vector of the second hand at time `t`,. represented a Point.