BoundsExtensions.Lerp

Extension Method in BoundsExtensions

Declaration

public static Vector3 Lerp(this Bounds bounds, Vector3 t)

Description

Linearly interpolates between the bounds' minimum and maximum values along each axis.

Parameters

boundsThe bounds to interpolate between.
tThe interpolation value for each axis.

Returns

Vector3The position as a result of the interpolation.

Overload

Declaration

public static Vector3Int Lerp(this BoundsInt bounds, Vector3 t)

Description

Linearly interpolates between the bounds' minimum and maximum values along each axis.

Parameters

boundsThe bounds to interpolate between.
tThe interpolation value for each axis.

Returns

Vector3IntThe position as a result of the interpolation.