-
2008010
编写一个线段类 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)
- 2009-12-24 14:03:10下载
- 积分:1
-
home3
用java JSP实现的一个小型网站,界面简洁,功能齐全,适合入门的初学者(With java JSP to achieve a small site, simple interface, complete functions, suitable for beginners to get started)
- 2014-04-28 10:57:49下载
- 积分:1
-
MD5jiami
一个简单的Java实现MD5加密的程序,可以直接用(Java realize a simple MD5 encryption procedures can be directly used)
- 2008-03-27 21:14:02下载
- 积分:1
-
USB_Complete
Connect to computer via USB port
- 2011-11-10 01:13:59下载
- 积分:1
-
PICMANAGER
JAVA ME写的图片管理程序,实现管理本机图片,可在部分高端手机上实现(JAVA ME write image management process to achieve management of the machine image can be realized in some high-end mobile phones)
- 2010-06-02 15:39:56下载
- 积分:1
-
robcstnxss-pyrsistence-depth
GSM11 11协议,智能卡开发需要的,不可多得()
- 2018-06-11 02:35:14下载
- 积分:1
-
autopk
这是一个基于Java的排课系统,是一个自动排课系统!(This is a Java-based Course Scheduling System is a self-Course Scheduling System!)
- 2009-05-02 23:55:28下载
- 积分:1
-
jt808-server
基于springboot + netty 开发JT808服务端(Development of JT808 Server Based on Springboot + netty)
- 2020-12-24 11:09:05下载
- 积分:1
-
aperabesbitwise
org,eclipse,wst,common , 这个源码非常棒()
- 2018-02-09 08:22:40下载
- 积分:1
-
thumbnail
说明: 搭建springmvc项目基本框架,用到的Jar,以及文件配置(springmvc building and user Jar files and file configuration)
- 2020-06-20 18:00:01下载
- 积分:1