-
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
-
DHUtil
utility class for converting jce/jca DH objects objects into their org.bouncycastle.crypto counterparts.
- 2013-12-11 13:18:31下载
- 积分:1
-
JavaProgramDesign
该课件是JAVA程序设计的简明教程,主要描绘JAVA简单的语法,重点是突出了与C++不同之处。(The courseware is simple JAVA programming tutorial, mainly depicting JAVA simple syntax, focusing on highlights and C++ differences.)
- 2010-10-21 20:13:15下载
- 积分:1
-
JavaEEWork
javaEE开发框架很有用的,专门正对初学者,好好看吧(java Development Framework)
- 2014-07-04 10:28:40下载
- 积分:1
-
weight
用天平称重时,已知给定的砝码,求解最多能称出多少不同的重量。(With weighing scales, it is known that a given weight, solving most able to call out the number of different weight.)
- 2012-11-06 16:11:36下载
- 积分:1
-
HuaCheng-(1)
web版JAVA农业类的交易平台。使用MVC设计模式,数据库使用的是sql server.开发环境用的MyEclipse(Web version of the JAVA agricultural trading platform)
- 2015-05-16 09:02:04下载
- 积分:1
-
jd-gui-1.4.0
Java decoder, decomplier
- 2020-06-22 18:40:01下载
- 积分:1
-
Candidate
JAVA程序设计导论 习题6。8
创造两个类,Vote and Candidate (the Vote and Candidate Classes)
- 2010-05-27 21:45:18下载
- 积分:1
-
EmptyImmutableListMultimap
Implementation of with no entries.
- 2014-01-22 14:17:28下载
- 积分:1
-
2597708
本程序用于词法分析:从DOS界面输入一行的C语句,并以#号结尾(注意必须以这个为结束标志,否则出错,要求输出对应的单词的()
- 2017-10-14 22:43:51下载
- 积分:1