2685N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 2370N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 2370N/A * This code is free software; you can redistribute it and/or modify it 2370N/A * under the terms of the GNU General Public License version 2 only, as 2685N/A * published by the Free Software Foundation. Oracle designates this 2370N/A * particular file as subject to the "Classpath" exception as provided 2685N/A * by Oracle in the LICENSE file that accompanied this code. 2370N/A * This code is distributed in the hope that it will be useful, but WITHOUT 2370N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 2370N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 2370N/A * version 2 for more details (a copy is included in the LICENSE file that 2370N/A * You should have received a copy of the GNU General Public License version 2370N/A * 2 along with this work; if not, write to the Free Software Foundation, 2370N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2685N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2685N/A * or visit www.oracle.com if you need additional information or have any 2370N/A * Represents a single tile, used to store the rectangles covering the area 2370N/A * of the mask where the tile is located. 2370N/A * EXA is not able to accalerate diagonal lines, we try to "guide" it a 2370N/A * bit to avoid excessive migration See project documentation for an 2370N/A int x, y, t,
dx,
dy,
incx,
incy,
pdx,
pdy,
ddx,
ddy,
es,
el,
err;
2370N/A /* Entfernung in beiden Dimensionen berechnen */ 2370N/A /* Vorzeichen des Inkrements bestimmen */ 2370N/A /* feststellen, welche Entfernung groesser ist */ 2370N/A /* x ist schnelle Richtung */ 2370N/A /* y ist schnelle Richtung */ 2370N/A /* Initialisierungen vor Schleifenbeginn */ 2370N/A for (t =
0; t <
el; ++t)
/* t zaehlt die Pixel, el ist auch Anzahl */ 2370N/A /* Aktualisierung Fehlerterm */ 2370N/A /* Fehlerterm wieder positiv (>=0) machen */ 2370N/A /* Schritt in langsame Richtung, Diagonalschritt */ 2370N/A /* Schritt in schnelle Richtung, Parallelschritt */ 2370N/A // System.out.println(x+":"+y);