-
编写一个线段类 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
-
applet中多个按钮功能,供练习使用。
applet中多个按钮功能,供练习使用。-applet in a number of button functions, for practice use.
- 2022-11-26 05:55:02下载
- 积分:1
-
JSP和Access做的BBS zenme zheme fansuo a ? hui rang ren toutong sidiao de . dage ,zh...
JSP和Access做的BBS zenme zheme fansuo a ? hui rang ren toutong sidiao de . dage ,zhuyi le o .gai yi gai a !!! hao buhao a ? zhen de shi yao gai de la !!!hehe haha -JSP and Access done BBS zenme zheme fansuo a hui rang de ren toutong sidiao. Dage, o le heavier. Gai yi gai a! ! ! Zhen buhao a hao de shi yao gai de la! ! ! Hehe haha!
- 2022-07-08 15:19:02下载
- 积分:1
-
java版的MSN仿真程序,可以直接运行的程序,对这有兴趣的同学可以互相学习学习!...
java版的MSN仿真程序,可以直接运行的程序,对这有兴趣的同学可以互相学习学习!-java version of the MSN simulation program, you can directly run the procedure, the students are interested in this can learn from each other to learn!
- 2022-01-28 11:48:39下载
- 积分:1
-
继承与多态课件1.rar
继承与多态课件1.rar-inheritance and polymorphism courseware 1.rar
- 2022-02-12 17:03:14下载
- 积分:1
-
java的bresenham源代码,可执行
java的bresenham源代码,可执行-the java source code, enforceable
- 2022-02-13 01:54:26下载
- 积分:1
-
dasdsad SDSA ASD sasafdsfasgsdh sdgsdgdsavasd sdgava adgadgsa(GDS asfeasgas广告…………………
sdsa dasdsad asd sasafdsfasgsdh sdgsdgdsavasd sdgava adgadgsa asfeasgas h ad gdsafsdfgdsg-sdsadsadasdsad asd sasafdsfasgsdh sdgsdgdsavasd sdgava adgadgsa asfeasgas h ad gdsafsdfgdsg
- 2023-09-03 02:35:03下载
- 积分:1
-
一个实用工具类,对于编程很有帮助的。用java编写的
一个实用工具类,对于编程很有帮助的。用java编写的-a practical tool category, the program very useful. Prepared using java
- 2022-01-22 02:09:24下载
- 积分:1
-
介绍java初学者的java程序。
introduct java program for the java starters.
- 2022-05-09 06:01:37下载
- 积分:1
-
keyboard can be achieved find functional errors
可以实现找到键盘错误功能-keyboard can be achieved find functional errors
- 2022-06-27 01:42:19下载
- 积分:1