问下 cocos2dx-lua 如何判断2个point相等
Cocos2d-x
humanfd
(humanfd)
2016年04月13日 04:47
#1
如题 目前出现了 经过运算以后的number小数点精度太高导致相等判断失败
jiansihun
(jiansihun)
2016年04月13日 06:40
#2
abs(a-b) < 0.00000000001 (看你的精度)