-
编写一个线段类 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
-
MSN chat software Java version is java version of the msn program. Learn referen...
MSN聊天软件Java版是java版的msn程序。可以学习参考一下。-MSN chat software Java version is java version of the msn program. Learn reference.
- 2022-02-05 01:56:08下载
- 积分:1
-
design paradigm. Rar
java设计范式.rar-design paradigm. Rar
- 2022-10-31 20:50:03下载
- 积分:1
-
图书馆管理系统源码,可以做毕业设计,小弟一点心血
图书馆管理系统源码,可以做毕业设计,小弟一点心血-Library management system source code
- 2023-01-14 21:10:03下载
- 积分:1
-
Internet cafe management system, using jbuilder9 development of the database usi...
网吧管理系统,采用jbuilder9开发,数据库用sql server2000,包括基本的网吧上机,下机等管理功能,收费,结帐等功能-Internet cafe management system, using jbuilder9 development of the database using sql server2000, including basic Internet cafe on the machine, the next machine management features, fees, billing and other functions
- 2022-03-02 20:10:30下载
- 积分:1
-
several very common SQL language, connecting to the database which operate java...
非常常用的几个SQL语言,连接数据库的操作java中JDBC技术经常要用到-several very common SQL language, connecting to the database which operate java JDBC regular use of the technology
- 2022-04-26 16:12:53下载
- 积分:1
-
Java安全性编程实例,解压看说明
Java安全性编程实例,解压看说明-Java security programming examples, unpacked looking
- 2022-08-24 17:56:57下载
- 积分:1
-
Colormenu彩色菜单Java小程序
Colormenu彩色菜单Java小程序-Colormenu color menu Java programs
- 2022-04-01 00:16:19下载
- 积分:1
-
搞算法预测的可以来看。有移动平均法,指数平滑法什么的。...
搞算法预测的可以来看。有移动平均法,指数平滑法什么的。-engage algorithm can look at the forecast. A moving average, exponential smoothing method whatever.
- 2022-04-08 14:48:02下载
- 积分:1
-
一个很有意思的UFO飞行动 可以使用并下载此代码一供大家一起 讨论...
一个很有意思的UFO飞行动 可以使用并下载此代码一供大家一起 讨论-A very interesting UFO flying operations can use and download the code for everyone together to discuss one
- 2022-05-26 10:55:31下载
- 积分:1