-
编写一个线段类 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
-
JAVA程序开发编码:语言转换器(简体中文和繁体中文)
JAVA程序开发编码:语言转换器(简体中文和繁体中文)-JAVA Programming code: language converters (Simplified Chinese and Traditional Chinese)
- 2022-01-24 10:07:47下载
- 积分:1
-
程序使用 Flickr 的API 提取用户名的个人资料, 是良好的 Java 和 Web 的混合使用教材...
程序使用 Flickr 的API 提取用户名的个人资料, 是良好的 Java 和 Web 的混合使用教材-API uses the Flickr user name extract personal information, is a good mixture of Java and the Web use of materials
- 2022-04-09 01:50:03下载
- 积分:1
-
一份非常好的java语言编程实例汇编
一份非常好的java语言编程实例汇编-a very good example of java programming language compilation
- 2022-02-28 08:58:55下载
- 积分:1
-
It include varieties of js effects
里面含有各种js特效,而且基本都有效果演示,感兴趣的朋友不要错过!-It include varieties of js effects
- 2022-03-10 10:28:08下载
- 积分:1
-
Java编写applet的计算器应用
Java编写applet的计算器应用-Java applet prepared the application calculator
- 2022-05-13 04:43:46下载
- 积分:1
-
java教程第八章事例
java教程第八章事例-Chapter VIII stories
- 2022-01-22 04:03:25下载
- 积分:1
-
实现客户端和服务器端的简单socket通信,一个服务器对应多个客户端,java课程的一课程设计...
实现客户端和服务器端的简单socket通信,一个服务器对应多个客户端,java课程的一课程设计-The achievement of client and server socket simple communications, a server corresponds to multiple clients, java courses in curriculum design 1
- 2023-06-14 05:35:03下载
- 积分:1
-
国际象棋的代码!实现基本的下棋功能!!大家看了就知道了!简单的一个...
国际象棋的代码!实现基本的下棋功能!!大家看了就知道了!简单的一个-chess code!ke yi shi xian ji ben de xia guojixiangqi de gongneng!
- 2022-08-06 09:29:41下载
- 积分:1
-
java教学讲义
java教学讲义-java Teaching Materials
- 2022-02-24 12:31:23下载
- 积分:1