clock

<script src="./point_src/clock"></script>

Meta Data
filepath_exists True
path clock
filepath clock.js
clean_files ()

  • VariableDeclaration
    const

    oo6

    =
    (1 / 60)
  • ClassDeclaration
    class comments:

    Sim Time provides an interface for hour, minute, second clock additions.

    let st = new SimTime(16, 30, 0)
    st.add(1) // seconds
    st.addHour(-1)
    st.add(100) //seconds
    st.array()
    [15, 31, 41]
    
    • constructor

      constructor

      (
      hour , minute , seconds , milliseconds
      )
      from SimTime
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])

      Sim Time provides an interface for hour, minute, second clock additions.

      let st = new SimTime(16, 30, 0)
      st.add(1) // seconds
      st.addHour(-1)
      st.add(100) //seconds
      st.array()
      [15, 31, 41]
      
    • method

      add

      (
      seconds
      )
      from SimTime
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • method

      split

      (
      secs
      )
      from SimTime
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • get

      hour

      (
      )
      from SimTime
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • get

      minute

      (
      )
      from SimTime
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • get

      sweepMinute

      (
      )
      from SimTime
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • get

      seconds

      (
      )
      from SimTime
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • get

      sweepSeconds

      (
      )
      from SimTime
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • get

      milliseconds

      (
      )
      from SimTime
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • set

      hour

      (
      v
      )
      from SimTime
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • set

      seconds

      (
      v
      )
      from SimTime
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • set

      minute

      (
      v
      )
      from SimTime
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • set

      milliseconds

      (
      v
      )
      from SimTime
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    dict_keys(['kind', 'word', 'parentName', 'type', 'body', 'comments', 'pos'])
  • ClassDeclaration
    class comments:

    assign the time hour to the point hand in the form of rotation

    • method

      getHourHand

      (
      initRotation , hour , minute , modulo = 12
      )
      from Hands
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])

      assign the time hour to the point hand in the form of rotation

    • method

      getMinuteHand

      (
      initRotation , minute
      )
      from Hands
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])

      Because polypoint 0 degreee rotation points to the 3oclock, we want to move the minute hand back by 15 minutes.

      we add 45 here, because we want to -15 minutes, so we ensure we spin around the clock 60-15, to ensure /60 works without minus.

    • method

      getSecondHand

      (
      initRotation , seconds , milliseconds = 1 , easingFunction
      )
      from Hands
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])

      The second hand only needs the current tick, and we convert it to a clock face rotation.

    • method

      getSecondHandRad

      (
      initRadians , seconds
      )
      from Hands
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])

      The second hand only needs the current tick, and we convert it to a clock face rotation.

    dict_keys(['kind', 'word', 'parentName', 'type', 'body', 'comments', 'pos'])