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
valueSizeFThe size we are doing the operation against.
otherSizeFThe size to compare for equality.
epsilonfloatThe tolerated epsilon value.
Returns
- bool
If the value is equal based on the epsilon.