-
编写一个线段类 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做的学生成绩管理系统。-a strong java giant of the students do performance management system.
- 2022-03-09 10:04:26下载
- 积分:1
-
This is dociment userguide for using Jboss with ejb3
This is dociment userguide for using Jboss with ejb3
- 2022-07-23 20:04:36下载
- 积分:1
-
接口和抽象类.rar
接口和抽象类.rar-interfaces and abstract category. Rar
- 2022-08-17 14:18:46下载
- 积分:1
-
java聊天程序源码
java聊天程序源码-java chat program FOSS
- 2022-09-13 16:40:03下载
- 积分:1
-
A Celsius
A Celsius-Fahrenheit-Kelvin -converter using NetBeans IDE.An application that converts between Celsius, Fahrenheit, and Kelvin degrees. For each unit, there is a text field showing the temperature, and a button that activates the conversion from that unit to the other units. Show 2 decimal places. -A Celsius-Fahrenheit-Kelvin-converter using NetBeans IDE.An application that converts between Celsius, Fahrenheit, and Kelvin degrees. For each unit, there is a text field showing the temperature, and a button that activates the conversion from that unit to the other units. Show 2 decimal places.
- 2023-06-15 04:05:04下载
- 积分:1
-
java 信息窗口的实现
java 信息窗口的实现-information window to achieve
- 2022-02-22 09:30:18下载
- 积分:1
-
利用Java软件开发工具实现简单信息管理系统
利用Java软件开发工具实现简单信息管理系统-The use of Java software development tools to achieve a simple Information Management System
- 2022-01-28 11:58:31下载
- 积分:1
-
图形程序飘动的画面
图形程序飘动的画面-graphics program floating in the picture
- 2022-03-12 21:19:02下载
- 积分:1
-
一个AU_Player播放器,,是有java开发的,提大家学习
一个AU_Player播放器,,是有java开发的,提大家学习-a AU_Player player, is a java development, we provide learning
- 2022-03-09 10:51:05下载
- 积分:1