void Line1NoClip(LineParameters lp, int sx, int sy) { if (lp.len > LineAA.MAX_LENGTH) { LineParameters lp1, lp2; lp.Divide(out lp1, out lp2); Line1NoClip(lp1, (lp.x1 + sx) >> 1, (lp.y1 + sy) >> 1); Line1NoClip(lp2, lp1.x2 + (lp1.y2 - lp1.y1), lp1.y2 - (lp1.x2 - lp1.x1)); return; } LineAA.FixDegenBisectrixStart(lp, ref sx, ref sy); LineInterpolatorAA1 li = new LineInterpolatorAA1(this, lp, sx, sy); if (li.IsVertical) { while (li.StepV()) { ; } } else { while (li.StepH()) { ; } } }
void Line1NoClip(LineParameters lp, int sx, int sy) { if (lp.len > LineAA.MAX_LENGTH) { LineParameters lp1, lp2; lp.Divide(out lp1, out lp2); Line1NoClip(lp1, (lp.x1 + sx) >> 1, (lp.y1 + sy) >> 1); Line1NoClip(lp2, lp1.x2 + (lp1.y2 - lp1.y1), lp1.y2 - (lp1.x2 - lp1.x1)); return; } LineAA.FixDegenBisectrixStart(lp, ref sx, ref sy); LineInterpolatorAA1 li = new LineInterpolatorAA1(this, lp, sx, sy); li.Loop(); }
void Line1NoClip(LineParameters lp, int sx, int sy) { if (lp.len > LineAA.MAX_LENGTH) { LineParameters lp1, lp2; lp.Divide(out lp1, out lp2); Line1NoClip(lp1, (lp.x1 + sx) >> 1, (lp.y1 + sy) >> 1); Line1NoClip(lp2, lp1.x2 + (lp1.y2 - lp1.y1), lp1.y2 - (lp1.x2 - lp1.x1)); return; } LineAA.FixDegenBisectrixStart(lp, ref sx, ref sy); LineInterpolatorAA1 li = new LineInterpolatorAA1(this, lp, sx, sy); if (li.IsVertical) { while (li.StepV()) ; } else { while (li.StepH()) ; } }