-
编写一个线段类 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
-
信道编码主要永与信道编码技术及其应用加之什么什么的
信道编码主要永与信道编码技术及其应用加之什么什么的-Channel Coding
- 2022-02-26 11:24:00下载
- 积分:1
-
Java source code 5
Java源代码5-Java source code 5
- 2022-03-21 16:45:08下载
- 积分:1
-
一个很好的微工作流内核,将工作流思想应用于应用系统级别上,提高代码服用率。...
一个很好的微工作流内核,将工作流思想应用于应用系统级别上,提高代码服用率。-a good work-flow core ideological work flow application-level applications, and improve the rate of use code.
- 2023-01-30 15:15:04下载
- 积分:1
-
M4AppSampleSwing.javafdfdf fgfgfdsgfg d
M4AppSampleSwing.javafdfdf fgfgfdsgfgd-M4AppSampleSwing.javafdfdf fgfgfdsgfg d
- 2022-06-27 04:16:49下载
- 积分:1
-
简单工厂模式源码
简单工厂模式源码-simple factories source model
- 2022-04-30 06:53:29下载
- 积分:1
-
fifo code. i have adde the code for key lib to the data which has been transfere...
fifo code. i have adde the code for key lib to the data which has been transfered-i have adde the code for key lib to the data which has been transfered
- 2022-02-25 16:15:25下载
- 积分:1
-
用JAVA编写的记事本,简洁实用。
用JAVA编写的记事本,简洁实用。-prepared using JAVA notebook, simple and practical.
- 2022-03-10 05:16:41下载
- 积分:1
-
pspkvm
pspkvm
let psp to use java
- 2023-01-29 15:25:04下载
- 积分:1
-
在命令行下学生信息管理系统!
用TXT存放数据!
在命令行下学生信息管理系统!
用TXT存放数据!-the command line student information management system. Storing the data used TXT!
- 2022-04-25 03:30:50下载
- 积分:1