Description
distanceBefore = abs(component-otherComponent).
A signed distance depends on a chosen normal or axis orientation. Projection parameters, perpendicular distances and reflected signs are different quantities; a nonunit direction introduces a scale into its parameter.
distanceBefore = abs(component-otherComponent).
When to use this tool
Use Taxicab Component Sign Change when checking a supplied projection, orientation or reflection convention.
How to use the tool and how it works
- Enter component, reverseSign, otherComponent. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read distanceBefore, distanceAfter, distanceChange. Use the output convention below.
distanceBefore = abs(component-otherComponent). Optionally negate component for distanceAfter, leaving otherComponent fixed; distanceChange = after-before.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| component | Component | Required. Finite number. |
| reverseSign | Reverse Sign | Required. Boolean. |
| otherComponent | Other Component | Required. Finite number. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| distanceBefore | Distance Before | Required. Finite number. |
| distanceAfter | Distance After | Required. Finite number. |
| distanceChange | Distance Change | Required. Finite number. |
{
"input": {
"component": 3,
"reverseSign": true,
"otherComponent": 2
},
"output": {
"distanceBefore": 1,
"distanceAfter": 5,
"distanceChange": 4
}
} Limitations and assumptions
- This reflects only one supplied coordinate around zero, not both points. Units must match; the output is one-axis absolute distance rather than a complete taxicab vector distance.
- 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
Use complete geometric objects and consistent units to compute actual distances, projections or multi-axis reflections.
References
Similar or alternative tools
- Signed Line Distance Orientation Flip
Return flipped = -signedDistance and magnitude = abs(signedDistance).
- Signed Distance Axis Reflection Effect
before = value-plane; after = plane-value, the signed coordinate difference after reflecting the value across the fixed plane coordinate.