-
编写一个线段类 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
-
CMU图象模块的上层浏览软件,可和CMU模块直接通信
CMU图象模块的上层浏览软件,可和CMU模块直接通信-CMU image of the upper module View software, and direct communications module CMU
- 2022-03-30 14:56:08下载
- 积分:1
-
用JAVA模拟DOS环境,执行DIR ,DEL,SET等相关操作!
用JAVA模拟DOS环境,执行DIR ,DEL,SET等相关操作!-with JAVA simulated DOS environment, the DIR, DEL, SET, and other related operations.
- 2022-02-04 21:15:50下载
- 积分:1
-
struts
struts-template.war文件,用tomcat发布。-struts- template.war document, released with tomcat.
- 2022-01-25 16:27:16下载
- 积分:1
-
JSP与servlet写的好易多电子书店,还不错可以看看!
JSP与servlet写的好易多电子书店,还不错可以看看!-JSP and servlet easy to write a good number of electronic bookstores, but also good look!
- 2022-03-16 02:01:29下载
- 积分:1
-
用JSP结合BEAN和SERVLET技术编写的一个留言本,是学习用三层架构编程的一个不错的示例...
用JSP结合BEAN和SERVLET技术编写的一个留言本,是学习用三层架构编程的一个不错的示例-combined with JSP and servlet technology Beans prepared a message of this study is the three-tier programming with a good example
- 2022-06-29 13:39:46下载
- 积分:1
-
用java 做的扫雷游戏,用了递归算法,原来递归也不难的
用java 做的扫雷游戏,用了递归算法,原来递归也不难的-do with the mine java games, with a recursive algorithm, the original will not be difficult for the recursive
- 2022-03-18 21:35:16下载
- 积分:1
-
JNI call c++ procedures, jni call c++ procedures
jni 调用c++程序, jni 调用c++程序-JNI call c++ procedures, jni call c++ procedures
- 2022-08-03 01:30:44下载
- 积分:1
-
FilterDispatcher源码,些源码是struts2的核心源码.
FilterDispatcher源码,些源码是struts2的核心源码.-FilterDispatcher source code, some source code is the core source struts2.
- 2023-03-10 00:55:03下载
- 积分:1
-
使用javamail发送邮件
演示如何使用javamail包发送电子邮件。这个实例可发送多附件...
使用javamail发送邮件
演示如何使用javamail包发送电子邮件。这个实例可发送多附件-Use JavaMail to send mail using the JavaMail package demonstrate how to send an e-mail. This example can be sent more than Annex
- 2022-03-30 15:08:06下载
- 积分:1