文件名称:DrawCosCurve
- 所属分类:
- 绘图程序
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 3kb
- 下载次数:
- 0次
- 提 供 者:
- 方*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
在屏幕上用‘*‘横向显示0~360度的cos(x)曲线。此题关键在于余弦曲
线在0~360度的范围内,一行要显示两个点。考虑到cos的对称性,将屏幕的行方向定义为x,列方向定义为y,则0~180度的图形是左右对称的。若将图形的总宽度定义为62列,计算出x行0~180度时y点的坐标m,那么在同一行与之对称的180~360度的y点的坐标就应为62-m。程序中利用反余弦函数acos计算坐标(x,y)的对应关系。
-On the screen using the ' *' horizontal display 0 to 360 degrees cos (x) curve. The problem lies in the cosine curve in the range of 0 to 360 degrees, the line to show two points. Taking into account the symmetry of cos, the direction of the screen line is defined as x, the column direction is defined as y, then 0 ~ 180 degree graph is symmetrical. If the total width of the graph is defined as 62 to calculate the x-line from 0 to 180 degrees y coordinates of the point m, then the same line with it' s 180 to 360 degree symmetrical y-coordinates of points should be for the 62-m. The program calculations using inverse cosine function acos coordinates (x, y) of the correspondence.
线在0~360度的范围内,一行要显示两个点。考虑到cos的对称性,将屏幕的行方向定义为x,列方向定义为y,则0~180度的图形是左右对称的。若将图形的总宽度定义为62列,计算出x行0~180度时y点的坐标m,那么在同一行与之对称的180~360度的y点的坐标就应为62-m。程序中利用反余弦函数acos计算坐标(x,y)的对应关系。
-On the screen using the ' *' horizontal display 0 to 360 degrees cos (x) curve. The problem lies in the cosine curve in the range of 0 to 360 degrees, the line to show two points. Taking into account the symmetry of cos, the direction of the screen line is defined as x, the column direction is defined as y, then 0 ~ 180 degree graph is symmetrical. If the total width of the graph is defined as 62 to calculate the x-line from 0 to 180 degrees y coordinates of the point m, then the same line with it' s 180 to 360 degree symmetrical y-coordinates of points should be for the 62-m. The program calculations using inverse cosine function acos coordinates (x, y) of the correspondence.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
DrawCosCurve\CosCurve.cpp
............\CosCurve.dsp
............\CosCurve.dsw
............\CosCurve.h
............\Main.cpp
DrawCosCurve
............\CosCurve.dsp
............\CosCurve.dsw
............\CosCurve.h
............\Main.cpp
DrawCosCurve