Skip to content

Main content

Geometry: Ellipse Focus Directrix Gap Tool

Evaluate the right-focus/right-directrix ellipse distance residual for an axis-aligned noncircular ellipse; no fitting, closest-point solver or approximate membership tolerance.

Loading tool…

Description

Compute c=sqrt(a²-b²), e=c/a, point distance to focus (+c, 0), distance to directrix x=a/e, and focus distance minus e times directrix distance inside result.

A conic curve has parameters tied to a chosen axis system and parameterization. Parametric angle, polar angle, focus distance, tangent, and normal describe different relationships and cannot be interchanged without their definitions.

Compute c=sqrt(a²-b²), e=c/a, point distance to focus (+c, 0), distance to directrix x=a/e, and focus distance minus e times directrix distance inside result.

When to use this tool

Use Geometry: Ellipse Focus Directrix Gap when you need a local conic-curve parameter or derivative calculation.

How to use the tool and how it works

  1. Enter semiMajor, semiMinor, point. 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 result. Expand result to inspect the returned fields.

Require a two-dimensional point and positive semiMinor strictly below semiMajor. Compute c=sqrt(a²-b²), e=c/a, point distance to focus (+c, 0), distance to directrix x=a/e, and focus distance minus e times directrix distance inside result.1

Input fieldMeaning and unitsAccepted input
semiMajorSemi MajorRequired. Finite number.
semiMinorSemi MinorRequired. Finite number.
pointPointRequired. Array of finite number. Implementation limit: 128 items.
Output fieldInterpretationReturned shape
resultObject containing the calculated members; expand to inspect the fields below.Required. Object.
result.focusDistanceFocus DistanceCalculated result member: number.
result.directrixDistanceDirectrix DistanceCalculated result member: number.
result.eccentricityEccentricityCalculated result member: number.
result.residualResidualCalculated result member: number.
json
{
  "input": {
    "semiMajor": 5,
    "semiMinor": 3,
    "point": [
      5,
      0
    ]
  },
  "output": {
    "result": {
      "focusDistance": 1,
      "directrixDistance": 1.25,
      "eccentricity": 0.8,
      "residual": 0
    }
  }
}

Limitations and assumptions

  • This assumes an origin-centered x-major ellipse and excludes a circle; residual is not clamped or checked against a tolerance and the supplied point need not lie on the ellipse.
  • Outputs are nested inside result. 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 full conic equation and coordinate transform for rotated or translated curves. Check semiaxis ordering, parameter units, and degeneracy before interpreting a local tangent or focus identity.

References

  1. Calculation and input contract: geometry/ellipse-focus-directrix-gap — tool.io

Similar or alternative tools