public static void AdjustSlopes(SySal.Scanning.Plate.IO.OPERA.LinkedZone lz) { int i, n; double multx, multy, deltax, deltay; multx = 1.0 / C.TopMultSlopeX; multy = 1.0 / C.TopMultSlopeY; deltax = -C.TopDeltaSlopeX; deltay = -C.TopDeltaSlopeY; n = lz.Top.Length; for (i = 0; i < n; i++) { MIPEmulsionTrack.AdjustSlopes(lz.Top[i], multx, multy, deltax, deltay); } multx = 1.0 / C.BottomMultSlopeX; multy = 1.0 / C.BottomMultSlopeY; deltax = -C.BottomDeltaSlopeX; deltay = -C.BottomDeltaSlopeY; n = lz.Bottom.Length; for (i = 0; i < n; i++) { MIPEmulsionTrack.AdjustSlopes(lz.Bottom[i], multx, multy, deltax, deltay); } }
public static void AdjustSlopes(SySal.Scanning.MIPIndexedEmulsionTrack t, double xslopemult, double yslopemult, double slopedx, double slopedy) { SySal.Tracking.MIPEmulsionTrackInfo info = MIPEmulsionTrack.AccessInfo(t); info.Slope.X = info.Slope.X * xslopemult + slopedx; info.Slope.Y = info.Slope.Y * yslopemult + slopedy; }