Class SizeMathExtensions
- Namespace
- Splat
- Assembly
- Splat.dll
Extension methods to assist with the SizeF struct.
public static class SizeMathExtensions
- Inheritance
-
SizeMathExtensions
Methods
ScaledBy(SizeF, float)
Scales a size by a scalar value.
public static SizeF ScaledBy(this SizeF value, float factor)
Parameters
Returns
- SizeF
The scaled size.
WithinEpsilonOf(SizeF, SizeF, float)
Determines whether two sizes are within epsilon of each other.
public static bool WithinEpsilonOf(this SizeF value, SizeF other, float epsilon)
Parameters
value
SizeFThe size we doing the operation against.
other
SizeFThe size to compare if we are equal to.
epsilon
floatThe tolerated epsilon value.
Returns
- bool
If the value is equal based on the epsilon.