Skip to content

Main content

Taxicab Component Sign Change Tool

Calculate taxicab component sign change from explicit caller-supplied inputs.

Loading tool…

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

  1. Enter component, reverseSign, otherComponent. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. 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 fieldMeaning and unitsAccepted input
componentComponentRequired. Finite number.
reverseSignReverse SignRequired. Boolean.
otherComponentOther ComponentRequired. Finite number.
Output fieldInterpretationReturned shape
distanceBeforeDistance BeforeRequired. Finite number.
distanceAfterDistance AfterRequired. Finite number.
distanceChangeDistance ChangeRequired. Finite number.
json
{
  "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

  1. Calculation and input contract: distance/taxicab-component-sign-change — tool.io

Similar or alternative tools