Home | History | Annotate | Download | only in sail

Lines Matching refs:Dr

70 		stern2r += dr[to->file->dir];
72 stern1r += dr[from->file->dir];
110 angle(int Dr, int Dc)
114 if (Dc >= 0 && Dr > 0)
116 else if (Dr <= 0 && Dc > 0)
118 else if (Dc <= 0 && Dr < 0)
122 Dr = abs(Dr);
124 if ((i == 0 || i == 4) && Dc * 2.4 > Dr) {
126 if (Dc > Dr * 2.4)
128 } else if ((i == 2 || i == 6) && Dr * 2.4 > Dc) {
130 if (Dr > Dc * 2.4)
140 int Dr, Dc, i;
143 Dr = from->file->row - to->file->row;
146 if ((ang = angle(Dr, Dc) - from->file->dir + 1) < 1)
152 Dr += dr[to->file->dir];
163 int Dr, Dc;
165 Dr = from->file->row - on->file->row;
168 Dr += dr[on->file->dir];
171 ang = angle(Dr, Dc);