namespace Yw.WinFrmUI.Hydro
{
///
/// float拓展
///
internal static class FloatL3dExtensions
{
///
/// 是否无效
///
public static bool Invalid(this float rhs)
{
if (float.IsNaN(rhs) || rhs == float.MinValue || rhs == float.MaxValue)
{
return true;
}
return false;
}
///
/// 是否有效
///
public static bool Valid(this float rhs)
{
return !rhs.Invalid();
}
}
}