-
编写一个线段类 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
-
基于web的动物识别系统,开发环境为Eclipse+Tomcat+MySQL。
基于web的动物识别系统,开发环境为Eclipse+Tomcat+MySQL。-Web-based animal identification system development environment for Eclipse+ Tomcat+ MySQL.
- 2022-01-26 16:07:31下载
- 积分:1
-
一个关于java的滚动条程序
一个关于java的滚动条程序-A scroll bar on the java program
- 2022-01-26 04:07:44下载
- 积分:1
-
java实现的一个简单的压缩功能,通过java虚拟机运行,可对指定的文件进行压缩。...
java实现的一个简单的压缩功能,通过java虚拟机运行,可对指定的文件进行压缩。-java achieve a simple compression functionality, java virtual machine running available to the designated document compression.
- 2023-01-06 22:15:03下载
- 积分:1
-
J2EE examples of a Chapter III
J2EE第三章实例1-J2EE examples of a Chapter III
- 2023-05-26 23:05:04下载
- 积分:1
-
一个java实现的用于模拟LRU文法分析的程序
一个java实现的用于模拟LRU文法分析的程序-Achieved a java grammar used to simulate the LRU analysis procedures
- 2022-08-07 02:24:31下载
- 积分:1
-
一个计算器的源代码
一个计算器的源代码-a calculator source code
- 2022-06-02 19:09:50下载
- 积分:1
-
Abstract is that it has overlooked a theme has nothing to do with the current ob...
抽象就是忽略一个主题中与当前目标无关的那些方面,以便更充分地注意与当前目标有关的方面。抽象并不打算了解全部问题,而只是选择其中的一部分,暂时不用部分细节。抽象包括两个方面,一是过程抽象,二是数据抽象-Abstract is that it has overlooked a theme has nothing to do with the current objectives of those aspects in order to more fully with the current objectives of the attention-related aspects. Abstract does not intend to understand all the issues, but only select one part of the moment do not have some details. Abstract two aspects, first, the process of abstraction, and the other is an abstract data
- 2022-06-11 12:40:33下载
- 积分:1
-
objects first with java: a practical introduction using bluej 英国爱丁堡大学java教程源代码...
objects first with java: a practical introduction using bluej 英国爱丁堡大学java教程源代码-first with java objects : a practical introduction using Bluej University of Edinburgh, UK Directory java source code
- 2022-08-07 22:41:02下载
- 积分:1
-
MSN聊天机器人,可以自由聊天对话,可以做很多使用的应用
MSN聊天机器人,可以自由聊天对话,可以做很多使用的应用-MSN chat robot, you can free chat dialogue, you can make a lot of applications
- 2022-05-26 00:07:45下载
- 积分:1