-
编写一个线段类 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 atm 毕业设计.rar
java atm 毕业设计.rar-graduate design. Rar
- 2022-07-18 12:18:38下载
- 积分:1
-
流聚类算法,利用JAVA语言实现,简单实用。
流聚类算法,利用JAVA语言实现,简单实用。-Stream clustering algorithm, using JAVA language implementation, simple and practical.
- 2023-05-03 07:20:03下载
- 积分:1
-
a simple thread program to print numbers
it can be synchronized with operating...
a simple thread program to print numbers
it can be synchronized with operating system tickms by including t1.sleep(1000) in the ADD() method
- 2022-03-25 05:53:15下载
- 积分:1
-
struts in action, 详细介绍action,form的使用方法。经典
struts in action, 详细介绍action,form的使用方法。经典-struts in action, detailing action, the use of form. Classical
- 2022-05-15 23:30:28下载
- 积分:1
-
利用一个简单的聊天室实现的聊天室功能,来进行欧…
采用eclipse实现了聊天室的简单框架功能,能够进行简单的通信-Eclipse achieved using a simple framework for the chat room feature, to carry out simple communication
- 2022-09-04 20:35:02下载
- 积分:1
-
用jsp连接数据库做的一个登录界面,用户可以通过用户名和密码来进行登录...
用jsp连接数据库做的一个登录界面,用户可以通过用户名和密码来进行登录-Jsp connect to the database to do with a login screen, the user can user name and password to log in
- 2022-01-25 14:12:50下载
- 积分:1
-
一个基于Java技术开发的Web邮局,使用户可以通过浏览器访问POP/SMTP服务器,支持多种语言,MIME和虚拟域名!...
一个基于Java技术开发的Web邮局,使用户可以通过浏览器访问POP/SMTP服务器,支持多种语言,MIME和虚拟域名!-A Web-based Java technology development of the post office, so that users can browser POP/SMTP server, supports multiple languages, MIME, and virtual domain names!
- 2023-03-09 23:45:03下载
- 积分:1
-
Sun J2EE 宠物店例子
Sun J2EE 宠物店例子-Sun J2EE pet example
- 2022-08-15 03:44:49下载
- 积分:1
-
用JAVA编网页编程示例
用JAVA编网页编程示例-series website with Java Programming Example
- 2022-04-26 08:38:55下载
- 积分:1