Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - Radius point
Search - Radius point - List
DL : 0
运用面向对象方法设计点类和平面图形类(含点类成员),并由后者 派生设计圆类(含圆心、半径)、正方形类(含左上角顶点、边长)与矩形类(含 左上角顶点、长和宽)、三角形类(含三个顶点);同时为有关类设计构造函数、 成员数据设置/提取操作函数、顶点显示函数及周长与面积计算函数,其中顶点 显示函数及周长与面积计算函数在平面图形类中应定义为纯虚函数。在主函数 第 4 页 中,分别创建各类对象,调用和执行相关成员函数,观察并分析程序运行结果-The use of object-oriented methods and graphic design point class graphics classes (including Point class members), derived by the latter design round classes (including center, radius), square type (including upper left vertex, edge length) with the rectangular type (including left corner vertices, length and width), triangles class (with three vertices) while designing the relevant class constructor member data set/extraction operation function, the vertex display functions and girth and area calculation function, where the vertex functions and week display length and area calculation function in the graphic class should be defined as a pure virtual function. In the first four in the main function, namely to create all kinds of objects, invoke and execute the relevant member functions, observe and analyze the result of the program
Date : 2025-12-31 Size : 1kb User : 苗茂米

DL : 0
Koch雪花的构图方法,递归模型的实现算法,建立平面二维坐标系,原点位于屏幕客户区中心,x轴水平向右为正,y轴铅直向上为正。 以原点为圆心绘制半径为r的圆,与y轴交于P0点。从P0点开始,顺时针方向将圆三等分,得到P1和P2点。P0P1P2构成等边三角形。 沿着等边三角形的三条边外侧分别绘制三段递归深度为4,夹角为60°的Koch曲线,形成Koch雪花。 -Koch snowflake patterning method, recursive algorithm model, the establishment of two-dimensional coordinate system, the origin of the client area of ​ ​ the center of the screen, x-axis horizontally to the right is positive, y-axis vertically upward is positive. Draw the origin as the center of the circle of radius r, and the y-axis at point P0. From the start point P0, the circle clockwise three equal portions, get points P1 and P2. P0P1P2 form an equilateral triangle. Along three sides of an equilateral triangle three sections were drawn outside the recursion depth is 4, the Koch curve angle of 60 to form a Koch snowflake.
Date : 2025-12-31 Size : 1.84mb User : 邱毛毛
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.