clock

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

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

  • VariableDeclaration
    const

    oo6

  • 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 class_name
      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 class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • method

      split

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

      hour

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

      minute

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

      sweepMinute

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

      seconds

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

      sweepSeconds

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

      milliseconds

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

      hour

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

      seconds

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

      minute

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

      milliseconds

      (
      v
      )
      from class_name
      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 class_name
      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 class_name
      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 class_name
      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 class_name
      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'])