-
编写一个线段类 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
-
网络管理,线程实现
network management, thread implement
- 2022-11-28 21:45:03下载
- 积分:1
-
字体测试,corejava代码
字体测试,corejava代码-font test, code corejava
- 2022-11-25 17:20:03下载
- 积分:1
-
java program for file
java program for file
- 2022-07-09 11:45:49下载
- 积分:1
-
java中操作xml,与显现xml文件的样式处理
java中操作xml,与显现xml文件的样式处理-java operate xml, and show the style xml file handle
- 2022-07-05 11:01:37下载
- 积分:1
-
JAVA views difficult for the poor to send the treasury opened a four French Envi...
JAVA看法很难贫困送的发了国库开了四大法国环境法国号就间接口国画家科-JAVA views difficult for the poor to send the treasury opened a four French Environment French on the interface between artists Branch
- 2023-03-30 02:50:02下载
- 积分:1
-
Pickle是一个Java库,其中包含的持久性,并发类和日志记录
Pickle是一个Java库,其中包含的持久性,并发类和日志记录-Pickle is a Java library containing classes for persistence, concurrency, and logging.
- 2022-03-06 19:20:59下载
- 积分:1
-
学生管理系统。使用java编程,oracle数据库
学生管理系统。使用java编程,oracle数据库-Student management system. The use of java programming, oracle database
- 2022-10-02 12:50:08下载
- 积分:1
-
java语言des算法实现
java语言des算法实现
java语言des算法实现...
java语言des算法实现
java语言des算法实现
java语言des算法实现-java---des----
java---des----
java---des----
java---des----
java---des----
- 2022-03-03 23:54:50下载
- 积分:1
-
junit中的软件设计模式 源代码,看了挺有收获的
junit中的软件设计模式 源代码,看了挺有收获的-junit the software design patterns source code, and saw quite harvest
- 2022-07-07 04:38:59下载
- 积分:1