Description
Add adjustment to originalSetting and return margins from both recorded limits and an inclusive insideRecordedRange flag.
A device-setting calculation compares supplied dimensions or positions with a caller-defined range. Passing that range is a geometric check and does not establish that the device fits a person or is safe to use.
Add adjustment to originalSetting and return margins from both recorded limits and an inclusive insideRecordedRange flag.
When to use this tool
Use Assistive Device Adjustment Record Offset when you need a supplied-range check on device or environment measurements.
How to use the tool and how it works
- Enter originalSetting, adjustment, minimum, maximum. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read proposedSetting, lowerMargin, upperMargin, insideRecordedRange. Inspect insideRecordedRange before interpreting the associated values.
Require maximum at least minimum. Add adjustment to originalSetting and return margins from both recorded limits and an inclusive insideRecordedRange flag.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| originalSetting | Original Setting | Required. Finite number. |
| adjustment | Adjustment | Required. Finite number. |
| minimum | Minimum | Required. Finite number. |
| maximum | Maximum | Required. Finite number. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| proposedSetting | Proposed Setting | Required. Finite number. |
| lowerMargin | Lower Margin | Required. Finite number. |
| upperMargin | Upper Margin | Required. Finite number. |
| insideRecordedRange | Inside Recorded Range | Required. Boolean. |
{
"input": {
"originalSetting": 10,
"adjustment": 2,
"minimum": 5,
"maximum": 15
},
"output": {
"proposedSetting": 12,
"lowerMargin": 7,
"upperMargin": 3,
"insideRecordedRange": true
}
} Limitations and assumptions
- Settings and limits share units and are supplied; this does not recommend an adjustment, verify a device, determine fit, or establish safe assistive-device use.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Have the relevant professional assess fit, function, and use in context. Consult the actual device specification and measurements when a geometric proxy is insufficient.
References
Similar or alternative tools
- Map Grid Cell Origin Sign
Offset the origin by column plus one half horizontally and signed row plus one half vertically.
- Pixel Grid Half Stroke Snap Offset
Convert to device pixels, round the lower stroke edge using Math.round, then add half the device width and convert back for snappedCenter and offset.