BoundsExtensions

Static Class in Zigurous.Math

Declaration

public static class BoundsExtensions

Description

Extension methods for Bounds.

Extension Methods

LerpLinearly interpolates between the bounds' minimum and maximum values along each axis.
LerpUnclampedLinearly interpolates between the bounds' 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 bounds' minimum and maximum values.
CalculateScaleCalculates the scale of the bounds required to fit inside another bounds.
RandomPointInsideReturns a random point inside the bounds.