Example #1
0
 /**
  * @param int $seconds
  */
 protected function moveToTime($seconds)
 {
     $this->TrackdataLoop->moveToTime($seconds);
     if (!is_null($this->RouteLoop)) {
         $this->RouteLoop->goToIndex($this->TrackdataLoop->index());
     }
 }
Example #2
0
 /**
  * @param float $kilometer
  */
 protected function move($kilometer)
 {
     $this->TrackdataLoop->moveToDistance($kilometer);
     if (!is_null($this->RouteLoop)) {
         $this->RouteLoop->goToIndex($this->TrackdataLoop->index());
     }
 }