Normalize a coordinate value to [0,1] range
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | value | |||
real(kind=wp), | intent(in) | :: | min_val | |||
real(kind=wp), | intent(in) | :: | max_val | |||
real(kind=wp), | intent(out) | :: | normalized_value |