pointxy.java

来自「CroftSoft Code Library是一个开源的可移植的纯Java游戏库」· Java 代码 · 共 39 行

JAVA
39
字号
     package com.croftsoft.core.math.geom;
     /*********************************************************************
     * A read-only accessor interface for double precision x,y coordinates.     *
     * @version     *   2003-04-13     *     * @since     *   2003-03-20     *     * @author
     *   <a href="http://www.croftsoft.com/">David Wallace Croft</a>     *********************************************************************/

     public interface  PointXY     //////////////////////////////////////////////////////////////////////
     //////////////////////////////////////////////////////////////////////
     {     public double  getX ( );     public double  getY ( );     //     public double  angleTo  ( PointXY  otherPointXY );     public double  distanceXY ( PointXY  otherPointXY );     public double  distance (       double  otherX,       double  otherY );
     //////////////////////////////////////////////////////////////////////
     //////////////////////////////////////////////////////////////////////
     }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?