Description
Subtract origin from every node and return the translated array.
Interpolation knots divide a coordinate range into intervals. Repeated nodes, unequal spacing, and exact boundary selection can change how a piecewise interpolant is interpreted.
Subtract origin from every node and return the translated array.
When to use this tool
Use Interpolation Node Origin Shift when you need one knot-interval or multiplicity diagnostic.
How to use the tool and how it works
- Enter nodes, origin. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read nodes. Use the output convention below.
Subtract origin from every node and return the translated array.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| nodes | Nodes | Required. Array of finite number; maximum items 256. |
| origin | Origin | Required. Finite number. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| nodes | Nodes | Required. Array of finite number; maximum items 256. |
json
{
"input": {
"nodes": [
2,
4,
7
],
"origin": 2
},
"output": {
"nodes": [
0,
2,
5
]
}
} Limitations and assumptions
- Translation does not validate ordering, distinctness, spacing, or precision loss for very large origins.
- 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
Validate the complete knot sequence and interpolation method, including tolerance and extrapolation policies.
References
Similar or alternative tools
- Interpolation: Interpolation Knot Multiplicity Count
Require nondecreasing knots and count entries exactly equal to target.
- Affine Knot Parameter
Require left different from right and return (knot - left)/(right - left) as parameter.