Skip to content

Main content

Bearing Quadrant Token Tool

Label a clockwise-from-north bearing quadrant with explicit axis-boundary labeling.

Loading tool…

Description

For exact multiples of 90 return the caller's boundaryToken; otherwise select NE, SE, SW, or NW.

Bearings are circular coordinates, so zero and 360 degrees represent the same direction. Sector boundaries and true, magnetic, compass, or relative references need explicit conventions.

For exact multiples of 90 return the caller's boundaryToken; otherwise select NE, SE, SW, or NW.

When to use this tool

Use Bearing Quadrant Token when you need a bearing normalization, sign correction, or sector label.

How to use the tool and how it works

  1. Enter bearingDegrees, boundaryToken. 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 quadrant, onBoundary. Inspect onBoundary before interpreting the associated values.

Require bearingDegrees in [0, 360). For exact multiples of 90 return the caller's boundaryToken; otherwise select NE, SE, SW, or NW.1

Input fieldMeaning and unitsAccepted input
bearingDegreesBearing DegreesRequired. Finite number; minimum 0; strictly below 360.
boundaryTokenBoundary TokenRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
quadrantQuadrantRequired. Text; maximum UTF-16 length 8192.
onBoundaryOn BoundaryRequired. Boolean.
json
{
  "input": {
    "bearingDegrees": 45,
    "boundaryToken": "axis"
  },
  "output": {
    "quadrant": "NE",
    "onBoundary": false
  }
}

Limitations and assumptions

  • The boundary token is not standardized or validated as a compass label; comparisons have no angular tolerance.
  • 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 current heading and magnetic information and a complete navigation process when interpreting an actual course or contact.

References

  1. Calculation and input contract: nautical/bearing-quadrant-token — tool.io

Similar or alternative tools