3261N/A * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. 3172N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3172N/A * This code is free software; you can redistribute it and/or modify it 3172N/A * under the terms of the GNU General Public License version 2 only, as 3172N/A * published by the Free Software Foundation. Oracle designates this 3172N/A * particular file as subject to the "Classpath" exception as provided 3172N/A * by Oracle in the LICENSE file that accompanied this code. 3172N/A * This code is distributed in the hope that it will be useful, but WITHOUT 3172N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3172N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3172N/A * version 2 for more details (a copy is included in the LICENSE file that 3172N/A * You should have received a copy of the GNU General Public License version 3172N/A * 2 along with this work; if not, write to the Free Software Foundation, 3172N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3172N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3172N/A * Class: sun_java2d_loops_FillParallelogram 3172N/A * Method: FillParallelogram 3172N/A * Sort parallelogram by y values, ensure that each delta vector 3265N/A * has a non-negative y delta. 3172N/A /* Top triangular portion. */ 3172N/A /* Middle parallelogram portion, which way does it slant? */ 3172N/A /* Middle parallelogram portion, slanted to right. */ 3172N/A /* left leg turned a corner at y0+dy1 */ 3172N/A /* right leg continuing on its initial trajectory from y0 */ 3172N/A /* Middle parallelogram portion, slanted to left. */ 3172N/A /* left leg continuing on its initial trajectory from y0 */ 3172N/A /* right leg turned a corner at y0+dy2 */ 3172N/A /* Bottom triangular portion. */ 3172N/A /* left leg turned its corner at y0+dy1, now moving right */ 3172N/A /* right leg turned its corner at y0+dy2, now moving left */