(self)
return cycle_delta_pos
Calculates the net change in the root position after a cycle.

    Returns:
      Net translation of the root position.
Calculates the net change in the root position after a cycle.
Calculates the net change in the root position after a cycle .
def _calc_cycle_delta_pos(self):
    """Calculates the net change in the root position after a cycle.

    Returns:
      Net translation of the root position.
    """
    first_frame = self._frames[0]
    last_frame = self._frames[-1]

    pos_start = self.get_frame_root_pos(first_frame)
    pos_end = self.get_frame_root_pos(last_frame)
    cycle_delta_pos = pos_end - pos_start
    cycle_delta_pos[2] = 0  # only translate along horizontal plane

    return cycle_delta_pos
def _calc_cycle_delta_pos ( self ) : first_frame = self . _frames [ 0 ] last_frame = self . _frames [ - 1 ] pos_start = self . get_frame_root_pos ( first_frame ) pos_end = self . get_frame_root_pos ( last_frame ) cycle_delta_pos = pos_end - pos_start cycle_delta_pos [ 2 ] = 0 # only translate along horizontal plane return cycle_delta_pos