Utils.IsZero Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
IsZero(Double) |
IsZero - Returns whether or not the double is "close" to 0. Same as AreClose(double, 0), but this is faster. |
IsZero(Vector4) |
Verifies if the Vector4 contains only zero values. |
IsZero(Single) |
IsZero - Returns whether or not the float is "close" to 0. Same as AreClose(float, 0), but this is faster. |
IsZero(CornerRadius) |
Verifies if the CornerRadius contains only zero values. |
IsZero(Thickness) |
Verifies if the Thickness contains only zero values. |
IsZero - Returns whether or not the double is "close" to 0. Same as AreClose(double, 0), but this is faster.
public static bool IsZero (this double value);
static member IsZero : double -> bool
<Extension()>
Public Function IsZero (value As Double) As Boolean
Parameters
- value
- Double
The double to compare to 0.
Returns
bool - the result of the AreClose comparison.
Applies to
Windows Community Toolkit 7.1.0 et Windows Community Toolkit 7.0.0
Produit | Versions |
---|---|
Windows Community Toolkit | 7.0.0, 7.1.0 |
Verifies if the Vector4 contains only zero values.
public static bool IsZero (this System.Numerics.Vector4 vector);
static member IsZero : System.Numerics.Vector4 -> bool
<Extension()>
Public Function IsZero (vector As Vector4) As Boolean
Parameters
- vector
- Vector4
Vector4
Returns
true if yes, otherwise false
Applies to
Windows Community Toolkit 7.1.0 et Windows Community Toolkit 7.0.0
Produit | Versions |
---|---|
Windows Community Toolkit | 7.0.0, 7.1.0 |
IsZero - Returns whether or not the float is "close" to 0. Same as AreClose(float, 0), but this is faster.
public static bool IsZero (this float value);
static member IsZero : single -> bool
<Extension()>
Public Function IsZero (value As Single) As Boolean
Parameters
- value
- Single
The float to compare to 0.
Returns
bool - the result of the AreClose comparison.
Applies to
Windows Community Toolkit 7.1.0 et Windows Community Toolkit 7.0.0
Produit | Versions |
---|---|
Windows Community Toolkit | 7.0.0, 7.1.0 |
Verifies if the CornerRadius contains only zero values.
public static bool IsZero (this Windows.UI.Xaml.CornerRadius corner);
static member IsZero : Windows.UI.Xaml.CornerRadius -> bool
<Extension()>
Public Function IsZero (corner As CornerRadius) As Boolean
Parameters
- corner
- CornerRadius
CornerRadius
Returns
true if yes, otherwise false
Applies to
Windows Community Toolkit 7.1.0 et Windows Community Toolkit 7.0.0
Produit | Versions |
---|---|
Windows Community Toolkit | 7.0.0, 7.1.0 |
Verifies if the Thickness contains only zero values.
public static bool IsZero (this Windows.UI.Xaml.Thickness thick);
static member IsZero : Windows.UI.Xaml.Thickness -> bool
<Extension()>
Public Function IsZero (thick As Thickness) As Boolean
Parameters
- thick
- Thickness
Thickness
Returns
Size
Applies to
Windows Community Toolkit 7.1.0 et Windows Community Toolkit 7.0.0
Produit | Versions |
---|---|
Windows Community Toolkit | 7.0.0, 7.1.0 |