Skip to content

算法_计算角度差Ex

函数简介

ComputeAngleDifferenceEx计算角度差,返回顺时针和逆时针角度差

函数原型

cpp
DOUBLE ComputeAngleDifferenceEx(CurrentAngle, TargetAngle, Direction, RotationAngle)

参数定义

CurrentAngle: 当前角度

TargetAngle: 目标角度

Direction: 最佳旋转方向。0:为顺时针旋转方向 1:为逆时针旋转方向。填入整数型变量接收返回结果。

RotationAngle: 最小旋转角度。填入整数型变量接收返回结果

返回值

1: 成功

0: 失败

易语言调用例子


主题切换
 全屏
复制代码

离火插件易语言模块源码


主题切换
 全屏
复制代码

离火AI插件官方网址 https://www.lihuochajian.com