-
2008010
编写一个线段类 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)
- 2009-12-24 14:03:10下载
- 积分:1
-
MMS-master
医院管理系统hospital management system(hospital management system)
- 2019-04-02 15:08:21下载
- 积分:1
-
CGB-JT-SYS-V1.05
说明: 该项目是ssm框架的电商项目,实现单点登录,添加购物车等功能。(This project is an e-commerce project based on SSM framework, which realizes the functions of single sign-on, adding shopping cart and so on.)
- 2019-05-20 22:13:23下载
- 积分:1
-
JAVA_TANK
一个Java3d做的坦克游戏,短小精悍,建议用java反编译器从class文件中反编译出源文件(Do a Java3d tank game, dapper, recommended against using java class file from the compiler to decompile the source file)
- 2010-06-23 13:23:03下载
- 积分:1
-
sIGaRRAYtYPEdELTA
ClassObj extends Instance implements.
- 2014-01-08 00:29:32下载
- 积分:1
-
MyStruts
这是一个过滤器的Demo.大家可以参考下.希望能对大家有所帮助.(This is a filter of the Demo. We can refer to the next. I hope you can help.)
- 2009-05-28 04:03:28下载
- 积分:1
-
SsaRenamer
Complete transformation to SSA form by renaming all registers accessed.<p>.
- 2013-11-04 09:33:21下载
- 积分:1
-
Fake-Login-Pages-or-Phishing(Yahoo_Facebook_Hi5_O
fake login source code and black hat details
- 2016-06-30 18:39:37下载
- 积分:1
-
CityWaterMaterialManagement4.9.2.tar
SSH框架,包含用户管理,信息管理等模块,嵌套了部分jquery效果(SSH framework, including user management, information management module, the nested part of the jQuery effect)
- 2015-02-26 13:46:34下载
- 积分:1
-
qq4.0(www.xunleidown.net)
SAVSD起到示范歌告诉三个额外是还是色图海容天天(vASDVASVWEA)
- 2009-12-11 00:14:04下载
- 积分:1