ReflectAtBounds

Reflects overshoot back into the input range: a value that exceeds a bound is mirrored back inside by the amount of the overshoot. A final clamp guards against a reflection that would overshoot the opposite bound (possible only when the overshoot exceeds the range width).

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun enforce(x: DoubleArray, problemDefinition: ProblemDefinition): DoubleArray

Enforces the input-range bounds on the supplied continuous position.

Link copied to clipboard
open override fun toString(): String