Table of Contents

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

value SizeF

The size we doing the operation against.

factor float

The amount to scale by.

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 SizeF

The size we doing the operation against.

other SizeF

The size to compare if we are equal to.

epsilon float

The tolerated epsilon value.

Returns

bool

If the value is equal based on the epsilon.