001 package com.croftsoft.core.math.geom; 002 003 /********************************************************************* 004 * A read-only accessor interface for double precision x,y coordinates. 005 * 006 * @version 007 * 2003-04-13 008 * 009 * @since 010 * 2003-03-20 011 * 012 * @author 013 * <a href="https://www.croftsoft.com/">David Wallace Croft</a> 014 *********************************************************************/ 015 016 public interface PointXY 017 ////////////////////////////////////////////////////////////////////// 018 ////////////////////////////////////////////////////////////////////// 019 { 020 021 public double getX ( ); 022 023 public double getY ( ); 024 025 // 026 027 public double angleTo ( PointXY otherPointXY ); 028 029 public double distanceXY ( PointXY otherPointXY ); 030 031 public double distance ( 032 double otherX, 033 double otherY ); 034 035 ////////////////////////////////////////////////////////////////////// 036 ////////////////////////////////////////////////////////////////////// 037 } 038