pub fn map_clamped<T>(
value: T,
from_min: T,
from_max: T,
to_min: T,
to_max: T,
) -> TExpand description
Map a value from one range to another with clamped lerp.
Used for Y-clamped gradients in density functions.
pub fn map_clamped<T>(
value: T,
from_min: T,
from_max: T,
to_min: T,
to_max: T,
) -> TMap a value from one range to another with clamped lerp.
Used for Y-clamped gradients in density functions.