搜索资源列表
Bresenham高效画线算法
- 画线的算法不少,但要作到高速、简单并不容易。斜率相乘法是最简单的方法之一,但计算每个点均要花费不少时间用于乘、除法运算;下面介绍的是Bresenham s高效画线算法,对每个点的坐标计算只要加、减法就能完成。-line drawing algorithm, but a lot to be done fast, simple is not easy. The slope is the most simple multiplication is one of the ways, but each p
CurvePainter
- n次贝塞尔曲线及三次b样条曲线的绘制,使用自己编写的curve类,实现曲线上点坐标的计算与绘制,曲线点坐标的计算使用递归算法。点击左键设定控制点,之后点击右件绘制曲线。-n Bessel curve and three b-spline curve mapping, prepared to use their own type of curve, curve coordinates of the point on the calculation and drawing, curve coordi
GetDistance
- 该程序用于求取平面问题中点到直线的距离,并且计算垂足点的坐标。
GetIntersectPoint
- 该程序用语计算两线段的焦点。分别传入两线段的端点坐标,返回交点坐标。
Lagrange
- 拉格朗日插值计算穿过所有已知点的光滑曲线上的坐标组(其中List为一个动态数组)
Newton
- 牛顿插值计算穿过所有已知点的光滑曲线上的坐标组(其中List为动态数组类型)
2BSpline
- 二次B样条拟合计算非穿过所有已知点的光滑曲线上的坐标组(其中List为动态数组类型)
3BSpline
- 三次B样条拟合计算非穿过所有已知点的光滑曲线上的坐标组(其中List为动态数组类型)
基本画线实现算法
- 新建一个C++Builder项目 设置Form1的font为“宋体,小五” 在Form1中添加一个TRadioGroup组件rgDrawWhat供选择画什么图形;添加一个Tbutton组件colorBtn和一个TcolorDialog组件ColorDialog1;添加一个TImage组件Image1。 3、 将当前项目保存在自己实验文件夹的exp1子文件夹中(以防错误操作而前功尽弃)。 编写colorBtn的OnClick事件,激活ColorDialog1,并获取所选择的颜色: if (Col
seekgravlim.rar
- 可计算任意多边形的质心和边缘凸点的坐标,该多边形由若干边缘坐标点确定。 给定的边缘坐标点越多,计算结果越精确。,The function applied to calculate the coordinate of barycenter and boundary embossses of a polygon,which is determined by boundary points. The points,the preciser of the result.
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
translateandrotate
- 题目:编程实现 多边形的平移、旋转变换 要求:不能调用OpenGL的变换函数,如glTranslatef, glRotatef,glScalef。要求通过矩阵相乘的方式,自 己计算出变换后几何图形的坐标。-do it without glTranslatef and glRotatef
wangluokuopu
- 模拟网络的扩扑结构的小程序,根据网络结构,自动计算扩扑坐标-Simulation of the expansion of the structure of the network at small procedures, according to the network structure, automatic calculation on expanding coordinates
PlaneCoordinate
- 使用GDI实现平面坐标的绘制,并且能计算鼠标点选的行列,左键在对应的矩形框画实心圆或取消,右键在对应的矩形画空心圆或取消-Use GDI drawing plane coordinate implementation, and can calculate the ranks of the mouse click, left in the corresponding rectangle painted solid round or cancel, right in the correspondin
ShuMo
- 该程序用于计算二维地图中,各路段的长度(需要知道各路段顶点坐标,以及各点间联系),采用文件操作的形式(txt文本)。-The program is used to calculate 2 d maps, the length of each section (need to know the various sections of vertex coordinates, as well as contact between each point), in the form of file ope
lens
- LED 二次光学设计中的透镜设计,根据非成像光学原理,利用matlab计算生成二维点坐标,可导入3维建模软件-LED optical design, lens design, according to the non-imaging optics principle, the use of matlab calculation to generate two-dimensional coordinates can import 3-D modeling software, the product
pdnmesh
- 自动实现N-S方程,只需要用户设置节点坐标,节点数目,进行流体、磁场计算-Automatic implementation of N-S equation, only need to set the node coordinates, the number of nodes, the fluid, magnetic field calculation
收缩段型线坐标计算程序
- 首先实现了风洞型线柱坐标下的变化,然后利用matlab求解了其型线方程,十分系统,可靠(The design of wind tunnel line is realized with MATLAB)