|

分享源码
界面截图: |
- |
是否带模块: |
- |
备注说明: |
- |
窗口程序集名 | 保 留 | 保 留 | 备 注 | 窗口程序集_启动窗口 | | | | 变量名 | 类 型 | 数组 | 备 注 | 顶点数组 | 整数型 | 6 | 起点数组 | 整数型 | 3,2 | 矩形 | 矩形数据 | | x | 整数型 | | y | 整数型 | | 按下判断 | 逻辑型 | |
|
_画板_鼠标左键被按下 | 逻辑型 | | |
横向位置 | 整数型 | | | | 纵向位置 | 整数型 | | | | 功能键状态 | 整数型 | | | |
x = 横向位置 y = 纵向位置 按下判断 = 真 |
_画板_鼠标位置被移动 | 逻辑型 | | |
横向位置 | 整数型 | | | | 纵向位置 | 整数型 | | | | 功能键状态 | 整数型 | | | |
如果真 (按下判断 = 真) 画板. 清除 (, , , ) 子程序_画箭头 (画板, x, y, 横向位置 - x, 纵向位置 - y ) 画板. 画多边形 (起点数组, 3 ) |
子程序_画箭头 | | | |
参_画板 | 画板 | | | | 参_左 | 整数型 | | | | 参_顶 | 整数型 | | | | 参_宽 | 整数型 | | | | 参_高 | 整数型 | | | |
变量名 | 类 型 | 静态 | 数组 | 备 注 | 左 | 整数型 | | | 顶 | 整数型 | | | 宽 | 整数型 | | | 高 | 整数型 | | | 箭头角度 | 小数型 | | | 边线长度 | 整数型 | | | 临时 | 双精度小数型 | | | 正弦值 | 双精度小数型 | | | 余弦值 | 双精度小数型 | | | 正弦值1 | 双精度小数型 | | | 正弦值2 | 双精度小数型 | | | 余弦值1 | 双精度小数型 | | | 余弦值2 | 双精度小数型 | | |
左 = 参_左 顶 = 参_顶 宽 = 参_宽 高 = 参_高 临时 = 求平方根 (宽 × 宽 + 高 × 高 ) 判断 (临时 = 0 ) 连续赋值 (0, 正弦值, 余弦值 ) 余弦值 = -宽 ÷ 临时  正弦值 = -高 ÷ 临时 箭头角度 = 30 × #pi ÷ 180边线长度 = 25 如果 (余弦值 ≥ 0 ) 正弦值1 = 求正弦 (子程序_求反正弦 (正弦值 ) - 箭头角度 ) 正弦值2 = 求正弦 (子程序_求反正弦 (正弦值 ) + 箭头角度 ) 正弦值1 = 求正弦 (子程序_求反正弦 (正弦值 ) + 箭头角度 ) 正弦值2 = 求正弦 (子程序_求反正弦 (正弦值 ) - 箭头角度 ) 如果 (正弦值 ≥ 0 )余弦值1 = 求余弦 (子程序_求反余弦 (余弦值 ) - 箭头角度 )余弦值2 = 求余弦 (子程序_求反余弦 (余弦值 ) + 箭头角度 ) 余弦值1 = 求余弦 (子程序_求反余弦 (余弦值 ) + 箭头角度 )余弦值2 = 求余弦 (子程序_求反余弦 (余弦值 ) - 箭头角度 )顶点数组 [1] = 左 + 宽顶点数组 [2] = 顶 + 高顶点数组 [3 ] = 四舍五入 (边线长度 × 余弦值1, ) + 顶点数组 [1 ]顶点数组 [4 ] = 四舍五入 (边线长度 × 正弦值1, ) + 顶点数组 [2 ]顶点数组 [5 ] = 四舍五入 (边线长度 × 余弦值2, ) + 顶点数组 [1 ]顶点数组 [6 ] = 四舍五入 (边线长度 × 正弦值2, ) + 顶点数组 [2 ]参_画板. 画多边形 (顶点数组, 3 )起点数组 [1 ] [1 ] = x 起点数组 [1 ] [2 ] = y 起点数组 [2 ] [1 ] = 顶点数组 [5 ]起点数组 [2 ] [2 ] = 顶点数组 [6 ]起点数组 [3 ] [1 ] = 顶点数组 [3 ]起点数组 [3 ] [2 ] = 顶点数组 [4 ] 判断 (正弦值 = -1 ) 返回 ( ( #pi ÷ 2 )) 判断 (正弦值 = 1 ) 返回 ( #pi ÷ 2 ) 返回 (求反正切 (正弦值 ÷ 求平方根 (-正弦值 × 正弦值 + 1 )) ) 判断 (余弦值 = -1 ) 返回 ( #pi ) 判断 (余弦值 = 1 ) 返回 (0 ) 返回 (求反正切 (-余弦值 ÷ 求平方根 (-余弦值 × 余弦值 + 1 )) + 2 × 求反正切 (1 ))  |
_画板_鼠标左键被放开 | 逻辑型 | | |
横向位置 | 整数型 | | | | 纵向位置 | 整数型 | | | | 功能键状态 | 整数型 | | | |
按下判断 = 假
没找着好用的,自己改了一下别人的源码
|
-
评分
-
查看全部评分
|