Class SizeMathExtensions
- Namespace
- Splat
- Assembly
- Splat.dll
Extension methods to assist with the SizeF struct.
- Inheritance
-
Size
Math Extensions
Methods
ScaledBy(SizeF, float)
Scales a size by a scalar value.
Parameters
Returns
- SizeF
The scaled size.
WithinEpsilonOf(SizeF, SizeF, float)
Determines whether two sizes are within epsilon of each other.
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.