-
编写一个线段类 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
-
with a series of the Network Program
用jsp编的一个网络程序-with a series of the Network Program
- 2022-04-24 01:09:20下载
- 积分:1
-
这是非常有用的,你可以用它和学习更好!希望你是最好的!
j2ee项目源码啊,很详细的例子,有视频好东东,看了源码你也可以自己编译修改框架了,希望对你有用-it s very useful ,you can use it and study better!hope you will be the best!
- 2022-10-09 11:10:03下载
- 积分:1
-
这是个利用J2EE编写的如何利用java语言进行与数据库MySQL连接的程序,进而进行数据库操作...
这是个利用J2EE编写的如何利用java语言进行与数据库MySQL连接的程序,进而进行数据库操作-This is how to use J2EE prepared using java language and the MySQL database to connect the process and thereby to carry out database operations
- 2022-01-27 13:23:39下载
- 积分:1
-
Menu examples of the display menu
Menu菜单的演示例子-Menu examples of the display menu
- 2022-03-12 02:04:08下载
- 积分:1
-
java平台下读写配置文件的类,比较有特色的是可以从网络上直接读配置文件...
java平台下读写配置文件的类,比较有特色的是可以从网络上直接读配置文件 -java platform to read and write configuration files under the category, more characteristics can be directly read from the network configuration file
- 2023-05-31 19:35:03下载
- 积分:1
-
一个日期控件,实现了日期的录入,可以选择任意日期.
一个日期控件,实现了日期的录入,可以选择任意日期.-A date control, realize the date of entry, you can choose any date.
- 2023-03-08 14:30:03下载
- 积分:1
-
java实现的一个简单的压缩功能,通过java虚拟机运行,可对指定的文件进行压缩。...
java实现的一个简单的压缩功能,通过java虚拟机运行,可对指定的文件进行压缩。-java achieve a simple compression functionality, java virtual machine running available to the designated document compression.
- 2023-01-06 22:15:03下载
- 积分:1
-
排序算法可能用到的基本单元――SortItem对象
排序算法可能用到的基本单元――SortItem对象-sorting algorithm may be used as the basic unit-- SortItem target
- 2022-08-12 17:46:54下载
- 积分:1
-
反编译器
Java Decompiler
- 2022-04-18 09:32:28下载
- 积分:1