Interface ClampedTransformer

All Superinterfaces:
DensityFunction, Keyed, PureTransformer, Registerable<PureTransformer>, Wrapper

@NullMarked @AsOf("3.0.0") public interface ClampedTransformer extends PureTransformer
Clamps the input between two values.
Since:
3.0.0
See Also:
  • Method Details

    • min

      @AsOf("3.0.0") double min()
      The minimum value.
      Returns:
      the minimum value
      Since:
      3.0.0
    • max

      @AsOf("3.0.0") double max()
      The maximum value.
      Returns:
      the maximum value
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static ClampedTransformer of(@Nullable ResourceKey resourceKey, DensityFunction input, double min, double max)
      Creates a new clamped density function.
      Parameters:
      resourceKey - the resource key, or null
      input - the input density function
      min - the minimum value
      max - the maximum value
      Returns:
      the clamped density function
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static ClampedTransformer of(DensityFunction input, double min, double max)
      Creates a new clamped density function.
      Parameters:
      input - the input density function
      min - the minimum value
      max - the maximum value
      Returns:
      the clamped density function
      Since:
      3.0.0