public int step_ver_base(distance_interpolator2 di) { m_li.Next(); m_y += m_lp.inc; m_x = (m_lp.x1 + m_li.y()) >> LineAABasics.line_subpixel_shift; if (m_lp.inc > 0) di.inc_y(m_x - m_old_x); else di.dec_y(m_x - m_old_x); m_old_x = m_x; return di.dist() / m_len; }
public int step_hor_base(distance_interpolator2 di) { m_li.Next(); m_x += m_lp.inc; m_y = (m_lp.y1 + m_li.y()) >> LineAABasics.line_subpixel_shift; if (m_lp.inc > 0) di.inc_x(m_y - m_old_y); else di.dec_x(m_y - m_old_y); m_old_y = m_y; return di.dist() / m_len; }