-
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
-
mine60
说明: Java推箱子游戏(一共有50关卡,带好听的音效),完整版源码,图形界面,看上去够专业。界面和泡泡堂游戏有点相似,学习游戏编程的JAVA朋友值得一看。
(Java Sokoban game (a total of 50 points, with good sound effects), the full version of source code, graphics interface, looks professional enough. Interface and the BNB to be somewhat similar game, learning game programming JAVA friends to see.)
- 2008-11-05 22:23:24下载
- 积分:1
-
cmpp2.0
java 开发的cmpp2.0程序,支持上行,下行发送(java cmpp2.0 program)
- 2020-12-25 16:39:04下载
- 积分:1
-
09934364
利用JAVA存取数据库中的图片,很好的学习案例(Using JAVA access to images in the , a good case study)
- 2017-04-18 21:17:26下载
- 积分:1
-
java-library-system
java图书馆系统,功能比较简单适合初学者!(java library system!)
- 2013-08-12 11:10:28下载
- 积分:1
-
tools
ftp上传下载工具包以及常用的java工具类,实现了ftp的上传和下载(this is java ftp upload and download packet)
- 2018-03-01 10:50:29下载
- 积分:1
-
1102_myFeameWork
说明: 用mvc写book系统,用数据库建立表格并用domel对数据库进行增删改查(Mvc book written by the system, using the database to create tables and use domel additions and deletions to the database search)
- 2011-04-18 17:36:50下载
- 积分:1
-
clock
一个简单的闹钟实例,适合初学者学习,界面简单。(A simple alarm clock examples for beginners to learn, simple interface.)
- 2013-11-25 02:01:26下载
- 积分:1
-
FileReadUtil.java.txt
一个读写文本文件的java类,传入strbuf,传出按照回车分割的字符串。用于读写小size(<=10M)的文本文件。(read text file class)
- 2013-08-30 09:35:09下载
- 积分:1
-
WEBJSP
jsp 教程 web 设计简单的上传与下载代码(jsp tutorial web design is simple to upload and download code)
- 2008-12-26 22:49:54下载
- 积分:1