Back to project page zmap.
The source code is released under:
GNU Lesser General Public License
If you think the Android project zmap listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.zmap.geom; //from w w w . ja v a 2s. co m /** * @note An IRing is a single polygon consist of a sequence of coordinates. * An IRing should be closed and simple, closed means that the last coordinate * should equal to the last one, simple means that any segment should not * intersect with others. * * We say an IRing is invalid, if it is not closed or not simple, ant thus some * of its operation may return invalid value (eg., area() returns Double.NaN) or * throw InvalidGeometryException. */ public interface IRing { /** * @note Get area of the ring. Returns Double.NaN if invalid. */ public double area(); /** * @note Get perimeter of the ring. Returns Double.NaN if invalid. */ public double perimeter(); /** * @note Try close the ring. */ public void close(); /** * @note Check whether the ring is closed. */ public boolean isClosed(); /** * @note Check whether the ring is simple. */ public boolean isSimple(); }