搜索资源列表
MyLine
- java 线段类..判断线段相交
bao
- (1) 实现一个Point类,该类包含表示坐标的两个int型变量x、y,构造方法Point()和Point(int xx, int yy),返回x值和y值的int getX()和int getY()方法,计算两点间距离的double distance(Point)方法。其中计算平方根用Math.sqrt()方法。 (2) 实现一个Circle类,该类包含表示圆心的Point型变量center,表示半径的int radius变量,以及构造方法Circle()、Circle(int xx,int
tuxingxue
- java写的图形学基础,含线线相交,线面相交,扫描线算法演示等,编译时须先编译polygon.java再编译saomiaoxian.java运行saomiaoxian即可。-failed to translate
Algorithm
- java 图形编程常用的,检验两条直线是否相交的java算法。-check two lines crossing each other
zhixian
- 判断两条直线是否平行,也可以判断是否相交,并可以求出交点。-To determine whether the two parallel straight lines, you can also determine whether the intersection, and can find the intersection.
2008010
- 编写一个线段类 MyLine,要求如下: 主要属性有: x ,y ;类型为Point (查看API) 编写构造方法,如 MyLine(Point p1 , Point p2) 编写5个成员方法。如: 检查线段是否位于第一象限check()… 求线段的长度 length() … 判断两条直线是否相交(另一线段作为参数)。 编写一点到该线段(或延长线)的距离 其他方法。 注:编写方法时,考虑利用Point类的方法 编写测试程序-Write a segment
work2
- 定义直线类,并提供判断两条直线是否相交等功能。-Define a straight line class, and provide to determine whether two lines intersect and other functions.
MyLine
- 判断线段是否位于第一象限;计算线段长度;判断两条线段是否相交;计算点到线段(直线)的距离;用户交互给出线段和点的坐标-Determine whether the line in the first quadrant calculated length of the line to determine whether the intersection of two segments calculation points to the line (straight line) distance
RectManager
- 对两个矩形是否相交的判断以及相交面积的计算-Whether the intersection of two rectangles and the intersection area calculation to determine
mediaBlog
- 博客,目前已经成为人们生活中互相交 流、互相娱乐的一个重用组成部分。随 着拥有博客的人的数量的增多,以及在 线播放视频的火热,仅仅提供文章发表 以图片上传等功能的普通博客以不能吸 引人们关注。在这样普通的博客中加入 视频播放的功能,就会满足人们的需要 ,更加提高了博客的关注度。通用的SQL Server 2000数据库+tomcat服务器。网 站包含所必需的前台和后台的完整设计 。内附多媒体博客使用说明书,数据库 的文件,和全部class,jar,和
Circle
- 实验3类、对象以及包的使用(6学时) 1.实验内容 (1) 实现一个Point类,该类包含表示坐标的两个int型变量x、y,构造方法Point()和Point(int xx, int yy),返回x值和y值的int getX()和int getY()方法,计算两点间距离的double distance(Point)方法。其中计算平方根用Math.sqrt()方法。 (2) 实现一个Circle类,该类包含表示圆心的Point型变量center,表示半径的int radius变量,以及
jiaoji
- 这是个描绘两个图形然后得到两个图形的相交部分的程序。-This is a graphic depicting two and then get the intersection of two graphics program.
MyLine
- 编写一个线段类 MyLine,要求如下: 主要属性有: e1,e2 端点,类型为Point 编写构造方法,如(Point p1 , Point p2) 编写成员方法。如: 检查线段是否位于第一象限check… 求线段的长度 length() … 判断两条线段(非延长线)是否相交(另一线段作为参数)。 求一点到该线段(或延长线)的距离 编写测试程序 用户输入线段的两点坐标构造一个线段 用户选择需要执行已编写的哪种方法(判断是否相交) 根据用户选择的方法要
prog1
- 编写程序建模二维平面坐标系中的直线,并提供函数实现判断两条直线是否相交。-The preparation of procedures for modeling two-dimensional coordinate system in a straight line, and provide the function to determine the two lines are intersected.
MyLine
- 设置两条线,程序会告诉你这两条线是否相交,在第一象限有什么特征之类的。-Set up two lines, the program will tell you whether the two lines intersect, in the first quadrant characteristics of class.
Maze
- 基于不相交集合的迷宫生成及生成迷宫的求解-Disjoint sets use in maze generation and solving the generated maze
test
- 输入两组直线上的点,判断并绘制两直线相交情况的图形界面!-Input point groups on the straight line is determined and plotted the graphical interface of the two straight lines intersecting the situation!
test
- 布线问题:如图1所示,印刷电路板将布线区域划分成n*m个方格。精确的电路布线问题要求确定连接方格a的中点到b的中点的最短布线方案。在布线时,电路只能沿直线或直角布线,如图1所示。为了避免线路相交,已经布线的方格做了封锁标记(如图1中阴影部分),其他线路不允许穿过被封锁的方格。-The wiring problem: as shown in Figure 1, the printed circuit board wiring area is divided into n* m Box. Accur
Cross.class
- 编写程序建模二维平面坐标系中的直线,并提供函数实现判断两条直线是否相交。此题目要求提供多种构造函数。(练习设计类与构造函数)-Programming modeling of two-dimensional coordinate system lines, and provides functions to achieve determine whether two lines intersect. This topic requires a variety of constructors. (E
Calculate two intersecting rounds.rar
- 用Java程序实现两个圆相交部分的面积,输出值精确到小数点后六位(Calculate two intersecting rounds of Java programs)