-
编写一个线段类 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
-
jsp prepared with the message if you jsp beginners downloaded properly examined...
用jsp编写的留言本 如果您是jsp初学者下载下来好好研究 相信有不少的提高 包括表结构,留言管理等内容,注释详细-jsp prepared with the message if you jsp beginners downloaded properly examined believe that many forms including raising the structure, message management, detailed Notes
- 2023-05-31 07:45:04下载
- 积分:1
-
java CMS框架的动力
Java powered CMS Framework -Java powered CMS Framework
- 2023-03-18 01:25:04下载
- 积分:1
-
用JAVA便写的一个利用栈来进行多项式运算的程序,是栈运用的一个好例子...
用JAVA便写的一个利用栈来进行多项式运算的程序,是栈运用的一个好例子-a good algorithm
- 2022-03-22 09:37:38下载
- 积分:1
-
一个聊天室小程序,很好的,简单实用,很有代表性,下来
一个聊天室小程序,很好的,简单实用,很有代表性,下来-a small chat room procedures, very good, simple and practical, very representative, look down
- 2023-01-10 21:10:04下载
- 积分:1
-
软件工程 Web技术与应用 实现多线程的基于TCP/IP协议的服务器端程序...
软件工程 Web技术与应用 实现多线程的基于TCP/IP协议的服务器端程序-Software Engineering Technology and Application of Web-based multi-threaded TCP/IP protocol server-side program
- 2022-07-06 22:28:11下载
- 积分:1
-
用编写的一个时钟程序
用编写的一个时钟程序-prepared by using a clock procedures
- 2022-06-22 00:31:59下载
- 积分:1
-
a simple scientific computer device that is written in JAVA, we sophomore year p...
一个简单的科学计算机器,是用JAVA写的,是我们大二时期的课设.-a simple scientific computer device that is written in JAVA, we sophomore year period based courses.
- 2023-02-16 11:05:03下载
- 积分:1
-
插座的邮件
SOCKET MAIL
- 2022-02-03 09:03:29下载
- 积分:1
-
jdbc增删改查操作 preparedstatement statement,滚动的结果集等一系列封装好的操作...
jdbc增删改查操作 preparedstatement statement,滚动的结果集等一系列封装好的操作-jdbc additions and deletions to change search operation preparedstatement statement, scrolling result sets and a series of packaged operational
- 2022-02-14 01:18:43下载
- 积分:1