Skip to content

Main content

Lens Axis Wrapped Angle Tool

Wrap an explicitly supplied unoriented research axis to a half-turn coordinate; no prescription is generated.

Loading tool…

Description

Wrap an explicitly supplied unoriented research axis to a half-turn coordinate; no prescription is generated.

Optical calculations distinguish lens power in diopters, prism notation, angular axes, geometric distances, and visual-acuity reporting scales. Sign conventions and length units are especially important when a formula combines power with decentration or vertex distance. A supplied model term is separate from a validated visual test or prescription.

Wrap an explicitly supplied unoriented research axis to a half-turn coordinate; no prescription is generated.

When to use this tool

Use Lens Axis Wrapped Angle when you need this explicit optical, chart, frame, axis, or reference conversion with compatible supplied units.

How to use the tool and how it works

  1. Enter axisDegrees, originDegrees. 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 wrappedDegrees. Use the output convention below.

Wrap axisDegrees-originDegrees into [0,180), reducing each operand first if their direct difference overflows, and return wrappedDegrees.1

Input fieldMeaning and unitsAccepted input
axisDegreesAxis DegreesRequired. Finite number.
originDegreesOrigin DegreesRequired. Finite number.
Output fieldInterpretationReturned shape
wrappedDegreesWrapped DegreesRequired. Finite number.
json
{
  "input": {
    "axisDegrees": 190,
    "originDegrees": 0
  },
  "output": {
    "wrappedDegrees": 10
  }
}

Limitations and assumptions

  • Inputs and output use degrees for an unoriented axis. No axis is measured or inferred, and wrapping does not establish prescription correctness or a physical rotation path.
  • 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 the appropriate complete optical or measurement model when a scalar term is insufficient. Verify power, axis, length, notation, and reference conventions before applying the result within a broader assessment.

References

  1. Calculation and input contract: optometry/lens-axis-wrapped-angle — tool.io

Similar or alternative tools

  • Optical Axis Reference Gap

    For suppliedReferenceGap within zero through 90 degrees reduce secondAxisDegrees-firstAxisDegrees modulo 180 and return unorientedGap=min(wrapped,180-wrapped) and residual=unorientedGap-suppliedReferenceGap.

  • Lens Cylinder Axis Unit Flag

    Convert a supplied axis unit and optionally normalize a 180-degree orientation; no prescription calculation.