-
编写一个线段类 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
-
实现校园卡的注册,消费,修改密码,等基本功能
实现校园卡的注册,消费,修改密码,等基本功能 -Campus Card registration, consumption, change passwords, and other basic functions
- 2022-06-16 04:14:40下载
- 积分:1
-
该压缩包里面包含了, java核心编程一书中的所有源代码,用户只要解压就可以运行...
该压缩包里面包含了, java核心编程一书中的所有源代码,用户只要解压就可以运行-The package which contains a compressed, java core programming book of all the source code, users can run as long as the decompression
- 2022-02-05 21:53:50下载
- 积分:1
-
用jmf写的播放器 蛮不错的
用jmf写的播放器 蛮不错的-JMF wrote with pretty good player
- 2023-01-09 20:00:02下载
- 积分:1
-
自己以前写的一个搜索系统
请站长帮我开通帐号!
自己以前写的一个搜索系统
请站长帮我开通帐号!-Written by his former owners a search system please help me open Account!
- 2022-09-17 19:00:03下载
- 积分:1
-
华为CMPP2短信接口库(JAVA版本),希望能帮到各位,
华为CMPP2短信接口库(JAVA版本),希望能帮到各位,-Huawei CMPP2 SMS Interface Library (Java version), hoping to be able to help you, -Huawei CMPP2 message interface library (JAVA edition), I hope to help you,-Huawei CMPP2 SMS Interface Library (Java version), hoping to be able to help you,
- 2023-07-09 14:05:03下载
- 积分:1
-
文献信息查询系统!采用Java连接数据库!通过用户名,作者查询相应的数据!...
文献信息查询系统!采用Java连接数据库!通过用户名,作者查询相应的数据!-Information Inquiry System! Using Java to connect to the database! By user name, the author inquiries corresponding data!
- 2022-07-02 05:37:36下载
- 积分:1
-
java SOCKET研究及原代码 很详细
java SOCKET研究及原代码 很详细-study and the original code in great detail
- 2023-07-15 02:55:02下载
- 积分:1
-
Hibernate the classical examples, contains all the objects corresponding to the...
Hibernate的精典实例,包含了所有对象对应关系的处理,包括一对一、一对多、多对多。简单掌握Hibernate最烦人的关系处理。-Hibernate the classical examples, contains all the objects corresponding to the relationship between treatment, including one-on-one, one-to-many, many-to-many. Simple to master the most annoying relationship Hibernate treatment.
- 2022-12-20 22:10:03下载
- 积分:1
-
随机运动的小球程序
随机运动的小球程序-random movement of the ball procedures
- 2022-03-31 16:02:06下载
- 积分:1