-
编写一个线段类 MyLine,要求如下:
主要属性有: x ,y ;类型为Point (查看API)
编写构造方法,如 MyLine(Point p1...
编写一个线段类 MyLine,要求如下:
主要属性有: x ,y ;类型为Point (查看API)
编写构造方法,如 MyLine(Point p1 , Point p2)
编写5个成员方法。如:
检查线段是否位于第一象限check()…
求线段的长度 length() …
判断两条直线是否相交(另一线段作为参数)。
编写一点到该线段(或延长线)的距离
其他方法。
注:编写方法时,考虑利用Point类的方法
编写测试程序-Write a segment class MyLine, requirements are as follows: The main attributes are: x, y type Point (see API) the preparation of construction methods, such as MyLine (Point p1, Point p2) prepared by five members of the method. Such as: Check whether the line segment in the first quadrant check () ... order to segment the length of the length () ... to determine whether the two straight lines intersect (the other segment as a parameter). The preparation of 1:00 to the line segment (or extension) of the distance from other methods. Note: The preparation method, consider using the Point class approach to preparing test program
- 2022-05-10 16:17:22下载
- 积分:1
-
玫瑰线的JAVA实现
玫瑰线的JAVA实现-Rose Line JAVA
- 2022-01-25 19:04:20下载
- 积分:1
-
junit中的软件设计模式 源代码,看了挺有收获的
junit中的软件设计模式 源代码,看了挺有收获的-junit the software design patterns source code, and saw quite harvest
- 2022-07-07 04:38:59下载
- 积分:1
-
该内容是关于fdtd的源码,我用过,ok!不错!
该内容是关于fdtd的源码,我用过,ok!不错!
- 2022-01-26 02:48:30下载
- 积分:1
-
图形仿真NFA到DFA
graphic simulation nfa to dfa
- 2022-02-21 08:45:10下载
- 积分:1
-
用java编写的3D魔方
包含所有的核心代码及注释,调试,测试代码。你可以用鼠标转动魔方,用键盘上的方向键移动魔方位置...
用java编写的3D魔方
包含所有的核心代码及注释,调试,测试代码。你可以用鼠标转动魔方,用键盘上的方向键移动魔方位置-Using java prepared 3D cube contains all the core code and the Notes, debugging, testing code. You can use the mouse to rotate cube, using the arrow keys on the keyboard the location of mobile Cube
- 2022-08-26 02:20:19下载
- 积分:1
-
计算圆面积的程序源代码
计算圆面积的程序源代码-Calculation of circular area of source code
- 2022-11-07 12:30:04下载
- 积分:1
-
用java编写的puzzle游戏
用java编写的puzzle游戏-prepared with the puzzle game
- 2022-08-02 16:33:46下载
- 积分:1
-
基于Upnp协议的示例程序,这是一个upnp的java实现
基于Upnp协议的示例程序,这是一个upnp的java实现-Upnp protocol based on the sample program, this is a upnp implementation of java
- 2023-04-12 15:30:04下载
- 积分:1
-
这是我在东方标准学习的时候做的一个项目,是中国移动的一个子管理任务模块,采用MVC模式设计,调试成功。...
这是我在东方标准学习的时候做的一个项目,是中国移动的一个子管理任务模块,采用MVC模式设计,调试成功。-This is my standard in the east to learn to do when a project is a subset of China Mobile Management mission modules, the use of MVC design patterns, debugging success.
- 2022-03-01 21:54:31下载
- 积分:1