-
编写一个线段类 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的文件管理系统
能实现包括文件的创建、删除、查找等功能-Java-based document management system to achieve, including file creation, deletion, search and other functions
- 2022-09-07 21:40:04下载
- 积分:1
-
用java语言做的L语言编译器,适合人间工程专业的《编译原理》课程的设计实验。...
用java语言做的L语言编译器,适合人间工程专业的《编译原理》课程的设计实验。-To do with java language L the language compiler, suitable for human engineering, " Compiler Construction Principles" course experimental design.
- 2023-07-06 23:25:02下载
- 积分:1
-
此程序为java计数程序,把查找文档的次数记录下,记录文档字数...
此程序为java计数程序,把查找文档的次数记录下,记录文档字数
-procedure for java counting procedures, and identify the number of recorded documents, records document wordage
- 2022-08-05 19:40:36下载
- 积分:1
-
merging algorithm in the java language to achieve
合并排序算法在java语言下的实现-merging algorithm in the java language to achieve
- 2023-05-27 12:55:04下载
- 积分:1
-
if―else语句,switch语句,循环结构,do
if―else语句,switch语句,循环结构,do-while语句,for语句, 跳转语句-if-else statements, switch statements, loops, do-while statement. for statements, statements Jump
- 2023-06-03 16:30:02下载
- 积分:1
-
java通过ODBC连接Access数据库,简单实用
java通过ODBC连接Access数据库,简单实用-java through ODBC to connect Access database, simple and practical
- 2022-04-08 17:31:27下载
- 积分:1
-
LAN chat applet, TCP, UDP protocols have
局域网聊天的小程序,TCP,UDP协议实现都有-LAN chat applet, TCP, UDP protocols have
- 2022-06-26 06:20:56下载
- 积分:1
-
java处理excel,工程包含原程序代码,希望可以给需要的人带来一些帮助。...
java处理excel,工程包含原程序代码,希望可以给需要的人带来一些帮助。-java handling excel, works include the original code. hoping to bring those who need help.
- 2022-01-26 04:07:28下载
- 积分:1
-
Will be user
将用户指定的数据保存成一个iso文件,包括前端和核心,前端主要负责界面显示,核心主要负责数据处理。-Will be user-specified data into a iso file, including front-end and the core is mainly responsible for front-end interface shows that the core is mainly responsible for data processing.
- 2022-06-14 04:26:46下载
- 积分:1