搜索资源列表
nearestpoint
- 随机在二维平面上生成一千个点,再利用分治算法计算这一千个点中的最近点对,并返回这两个点的距离和坐标-Randomly generated on a two-dimensional plane a thousand points, and then use divide and conquer algorithm to calculate these thousand points of the nearest point on, and return from, and coordinate t
3
- 编写一个 Java 程序,用于完成二维平面空间中一条直线的长度。 要求:(1)创建一个类(Point),用于描述二维空间中的点;(2)创建一个类(Line), 用于描述二维空间中的一条直线,要求继承第一个类(即Point),且通过Java 默认的Math 类中静态方法计算一条直线的距离;(3)创建一个新类,在主函数 中输入一条二维空间中的直线信息,计算并输出直线长度。-compute thw length
Class-Position
- 设计一个描述二维平面上点的类Position,该类需要描述点的横坐标和纵坐标,并提供访问器方法(set方法和get方法)和计算两点间距离的方法。写一个程序测试这个类-Design of a two-dimensional plane descr iption class Position point, the class needs to describe the point of abscissa and ordinate and provide accessor methods (set a
