Skip to content

ClampSubPartsCalculationPart

Class Documentation

Edit documentation

A calculation part that returns the sum of mSubparts, clamped to mFloor and mCeiling. Null entries are skipped. The client tests the ceiling first: if mCeiling is set and the sum is above it, the part returns mCeiling. Otherwise, if mFloor is set and the sum is below it, the part returns mFloor.

Properties

mCeiling

Option<F32> = 0
Edit documentation

Upper bound of the sum. When it is not set, the sum has no upper bound.

mFloor

Option<F32> = 0
Edit documentation

Lower bound of the sum. When it is not set, the sum has no lower bound.