搜索资源列表
jichen
- 继承与派生 内容:定义一个点类,包含X,Y的坐标数据成员,显示函数和计算面积的函数成员;以点为基类派生一个圆类,增加表示半径的数据成员,重载显示和计算面积的函数;定义一个直线类,以两个点类对象作数据成员,定义显示、求面积及长度函数。 -inheritance and derived elements : a definition point category, including X, Y coordinates of the data, calculations show functi
高速椭圆绘制程序
- 高速椭圆绘制程序 程序中var16为有符号16位数字型,uvar16为16位无符号数字型,uvar32为无符号32位数字型,var32为有符号32位数字型。Ellipse参数中的x0,y0为圆心坐标,r1和r2分别为横半径和纵半径。PutPixel为画点函数。 -high-speed oval drawing program procedures var16 symbols for the median 16 H, 16 uvar16 for digital-type symbols, sy
p219__3__2
- #include<iostream> using namespace std class Point {public: Point(int a){x=a } ~Point(){cout< \"execuing Point destructor\"<<endl } private: int x } class Circle:public Point {public: Circle(int m,int n
dv
- #include<iostream> using namespace std class Point {public: Point(int a){x=a } ~Point(){cout< \"execuing Point destructor\"<<endl } private: int x } class Circle:public Point {public: Circle(int m,int n
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
图形学直线的生成算法
- 圆心在原点,半径为R的第一个4分圆的Bresenham画圆算法程序,将该算法程序推广到任一四分圆,从而形成一般的Bresenham画圆算法。并利用Bresenham画圆算法画出一个圆心在点(xc,yc), 半径为R, 圆周颜色为color的圆-Center in the basics of radius R for the first four hours round the Bresenham algorithm Circle procedures, procedures for the pr
ArcPartDemo
- 计算圆弧上n个等分点的坐标的函数,及使用示例代码,VC环境,属于二维图形基础算法,加有详细的注释。 输入:圆心,起点,终点,半径,旋转方向,点数量n。 输出:圆弧上n个等分点坐标的数组, 说明:输出的起点序号为0,终点序号为n-1 -Calculate arc n are equally a function of the coordinates of points, and use the sample code, VC environment, belonging to
testhoughcircle
- opencv,检测图像中的圆,并且检测其圆心和半径的一个小程序。-opencv, detection of the image circle, and the detection of its center point and radius of a small program.
CG_GL
- 根据输入的半径长度和原点坐标画出圆,圆周用点表示-According to input the length and the radius of the origin coordinates to draw circle, circle with point
3
- 心形线,是一个圆上的固定一点在它绕着与其相切且半径相同的另外一个圆周滚动时所形成的轨迹,该程序可以动态的演示心形线的生成过程,-Heart-shaped line, is a fixed point circle around it with its tangent and the radius of a circle the same rolling track being formed, the program can be a demonstration of the dynamic he
drillnc_vb
- 产生钻孔nc 代码 输入:NC文件号 incfileNum 输入:备注strNote, 安全高度, 钻深, 啄钻深度, 点集,刀号,刀径,转速,进给,刀长补正,半径补正,[下一刀号], [N行号],[增量] 输出:啄钻NC -Enter the code generated nc bored: NC document incfileNum type: Remarks strNote, safe altitude, deep drilling, peck drilling d
Fullarc_mill2
- 目的: 全圆铣削过程(有刀径补正 进退刀圆弧等径 中心下刀) 输入: NC文件号incfileNum 输入: 备注strNote, 安全高度Millinitial_z, 铣深milldepth, Z进给高度millFdepth , 啄铣深度millzstpdepth,圆直径strDiamill, 圆心点集strCptsxy,刀号Tcur,刀径Diacur,转速Scur, 进给Fcur,刀长补正H,半径补正Dcur,铣削方向blnFangxXiang,[下一刀号]Tnxt
Cube
- 帮助D3D学习者了解向量与矩阵运算。 实现效果:指定世界空间中的任意位置作为原点,指定任意长度作为旋转半径,立方体围绕圆心旋转。-D3D assist learners know vector and matrix operations. Achieve results: the designated space in the world at any position as a starting point, designated as the rotation radius of arb
Circle
- 圆中点BRESENHAM算法的实现。输入半径,圆的颜色为蓝色。在VC6.0上实现。算法程序容易理解。-BRESENHAM round the mid-point algorithm implementation. Enter the radius of a circle for the color blue. In the implementation on VC6.0. Algorithm procedure easier to understand.
circle
- this code will help you to draw a circle, the input is the radius and no. of point and the center point
Point-x-y
- 先建立一个点类Point,包含数据成员x,y(坐标点)。以它为基类,派生出圆类Circle,增加数据成员radius(半径),再以Cirlcle类为直接基类,派生出圆柱体类Cylinder,再增加数据成员height(高)。要求: (1)每个类都有构造函数、用于从键盘获取数据的成员函数set(),用于显示数据的成员函数display()。 (2)用虚函数输出各类对象信息 -First establish a point class Point contains data member
point
- (1)在二维平面空间上,使用x、y坐标可以确定一个点;确定了圆心坐标和半径后可以确定一个圆。声明一个点类,并使用这个点类的对象为数据成员声明圆类。 (2)设计并测试一个名为Ellipse的椭圆类,其属性为外接矩形的左上角与右下角两个点的坐标,并能计算出椭圆的面积 -(1) in two-dimensional space, using the x, y coordinates of a point can be determined determine the center coord
point
- 这是一个求圆半径的程序。并把它加以显示出来。-This is a process of circular radius. And to display it.
huawujiaoxing
- 通过点击鼠标确定五角星中心,拖动鼠标后松开可绘制出五角星,也可直接点出固定半径的五角星-Determined by the click of a mouse pentagram center, after dragging the mouse to draw a pentagram release may also be directly fixed radius point out the five-pointed star
solve-centerial-point
- 在直角坐标系中,已知两点坐标和半径求圆心坐标程序-In the Cartesian coordinate system, the coordinates of known points and a radius of center coordinates program requirements