您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

18 行
515 B

using Unity.UIWidgets.foundation;
namespace Unity.UIWidgets.physics {
public class PhysicsUtils {
public static bool nearEqual(float? a, float? b, float epsilon) {
D.assert(epsilon >= 0.0);
if (a == null || b == null) {
return a == b;
}
return (a > (b - epsilon)) && (a < (b + epsilon)) || a == b;
}
public static bool nearZero(float? a, float epsilon) {
return nearEqual(a, 0.0f, epsilon);
}
}
}