点击或拖拽改变大小

FloatUtil 类

[缺少 "T:CPF.FloatUtil" 的 <summary> 文档]

继承层次
SystemObject
  CPFFloatUtil

命名空间:  CPF
程序集:  CPF (在 CPF.dll 中) 版本:0.8.8.5
语法
C#
public static class FloatUtil

FloatUtil 类型公开以下成员。

方法
  名称说明
公共方法静态成员AreClose
AreClose
公共方法静态成员GreaterThan
GreaterThan - Returns whether or not the first float is greater than the second float. That is, whether or not the first is strictly greater than *and* not within epsilon of the other number. Note that this epsilon is proportional to the numbers themselves to that AreClose survives scalar multiplication. Note, There are plenty of ways for this to return false even for numbers which are theoretically identical, so no code calling this should fail to work if this returns false. This is important enough to repeat: NB: NO CODE CALLING THIS FUNCTION SHOULD DEPEND ON ACCURATE RESULTS - this should be used for optimizations *only*.
公共方法静态成员GreaterThanOrClose
公共方法静态成员IsCloseToDivideByZero
IsCloseToDivideByZero
公共方法静态成员IsNaN
公共方法静态成员IsOne
IsOne
公共方法静态成员IsZero
IsZero
公共方法静态成员LessThan
公共方法静态成员LessThanOrClose
Top
参见