RectExtensions

Static Class in Zigurous.Math

Declaration

public static class RectExtensions

Description

Extension methods for Rect.

Extension Methods

ContainsDetermines if the rect fully contains another rect.
EncapsulateGrows the rect to fully encapsulate another rect.
LerpLinearly interpolates between the rect's minimum and maximum values along each axis.
LerpUnclampedLinearly interpolates between the rect's minimum and maximum values along each axis with no limit to t.
InverseLerpReturns the linear parameter t that produces the interpolant for each axis within the rect's minimum and maximum values.