001/* 002 * XYPoint -- The interface in common to any data type that is to be stored in a PointRegionQuadTree. 003 * 004 * Copyright (C) 2018, by Joseph A. Huwaldt 005 * All rights reserved. 006 * 007 * This library is free software; you can redistribute it and/or 008 * modify it under the terms of the GNU Lesser General Public 009 * License as published by the Free Software Foundation; either 010 * version 2.1 of the License, or (at your option) any later version. 011 * 012 * This library is distributed in the hope that it will be useful, 013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 015 * Lesser General Public License for more details. 016 * 017 * You should have received a copy of the GNU Lesser General Public 018 * License along with this library; if not, write to the Free Software 019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 020 * MA 02110-1301 USA 021 */ 022package jahuwaldt.util; 023 024/** 025 * The interface required of any data type that is to be stored in a PointRegionQuadTree. 026 * 027 * <p> Modified by: Joseph A. Huwaldt </p> 028 * 029 * @author Joseph A. Huwaldt, Date: February 5, 2018 030 * @version February 5, 2018 031 * @see PointRegionQuadTree 032 */ 033public interface XYPoint { 034 035 /** 036 * Returns the X coordinate of this XYPoint in double precision. 037 * 038 * @return The X coordinate of this point. 039 */ 040 public double getX(); 041 042 /** 043 * Returns the Y coordinate of this XYPoint in double precision. 044 * 045 * @return The Y coordinate of this point. 046 */ 047 public double getY(); 048}