-
编写一个线段类 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语言做的L语言编译器,适合人间工程专业的《编译原理》课程的设计实验。...
用java语言做的L语言编译器,适合人间工程专业的《编译原理》课程的设计实验。-To do with java language L the language compiler, suitable for human engineering, " Compiler Construction Principles" course experimental design.
- 2023-07-06 23:25:02下载
- 积分:1
-
98 World Cup 的JAVA程序
98 World Cup 的JAVA程序-98 World Cup Java Programs
- 2022-11-08 14:10:03下载
- 积分:1
-
hsql database JDBC Connection procedures
hsql数据库的JDBC连接程序-hsql database JDBC Connection procedures
- 2023-03-24 20:00:03下载
- 积分:1
-
工具包,报告时间类型转化,字符串解析,数字的加减乘除等处理...
工具包,报告时间类型转化,字符串解析,数字的加减乘除等处理-Tool kit, the report time type conversion, string parsing, numbers, addition and subtraction multiplication and division, to deal with
- 2022-04-24 14:34:56下载
- 积分:1
-
java_北京大学讲义 北京大学java讲义的幻灯
java_北京大学讲义 北京大学java讲义的幻灯-java_ Beijing University, Beijing University overhead of java overhead projector
- 2023-06-23 18:30:03下载
- 积分:1
-
JSP精彩编程实例
JSP精彩编程实例-JSP Programming wonderful examples
- 2022-02-26 14:24:54下载
- 积分:1
-
一个简单的记事本源程序(java)
一个简单的记事本源程序(java)-a simple notebook source (java)
- 2023-07-19 23:05:03下载
- 积分:1
-
java in some of the challenges, you might have done wrong ah, try it
java中的一些难题,说不定你也做不对啊,试试吧-java in some of the challenges, you might have done wrong ah, try it
- 2022-08-02 23:16:35下载
- 积分:1
-
JAVA+JSP程序系统的JSP聊天室
JAVA+JSP程序系统的JSP聊天室-Java System JSP JSP Chat Room
- 2022-01-22 14:51:19下载
- 积分:1