Android examples for Graphics:Path
is Valid Polygon
/******************************************************************************* * Copyright (c) 2011 MadRobot./* w ww .j av a 2s.c o m*/ * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v2.1 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * * Contributors: * Elton Kent - initial API and implementation ******************************************************************************/ //package com.java2s; public class Main { public static boolean isValidPolygon(float[] x, float[] y) { if (x == null || y == null) { return false; } else if (x.length != y.length) { return false; } return true; } }