Skip to content

Main content

Segment Axis Bounding Overlap

Audit inclusive axis-envelope overlap of two planar segments; overlapping envelopes alone do not prove segment intersection.

Loading tool…

Description

Audit inclusive axis-envelope overlap of two planar segments; overlapping envelopes alone do not prove segment intersection.

Planar geometry operates on two-coordinate Cartesian points and explicit shape boundaries. A closed rectangle includes its edges, while a segment parameter locates a point along a supporting line. Signed cross products, areas and axis gaps preserve orientation or direction information that a magnitude alone would lose.

Audit inclusive axis-envelope overlap of two planar segments; overlapping envelopes alone do not prove segment intersection.

When to use this tool

Use this tool to audit inclusive axis-envelope overlap of two planar segments; overlapping envelopes alone do not prove segment intersection.

How to use the tool and how it works

  1. Enter a, b, c, d using the input definitions below.
  2. Run the operation. Resolve malformed-input errors before interpreting the result.
  3. Read result.xOverlap, result.yOverlap. Interpret signs, units, ordering and null values using the rules below.

For each axis compare the maximum of the two segment-envelope minima with the minimum of their maxima. Equality counts as overlap. Return independent xOverlap and yOverlap flags.1

Input fieldMeaning and unitsAccepted input
aFirst point [x,y]; for segment-pair tools this is the first segment’s start.Dense list of at most 128 finite numbers, subject to the stated integer/shape rules.
bSecond point [x,y]; for segment-pair tools this is the first segment’s end.Dense list of at most 128 finite numbers, subject to the stated integer/shape rules.
cThird point [x,y]; for segment-pair tools this is the second segment’s start.Dense list of at most 128 finite numbers, subject to the stated integer/shape rules.
dSecond segment’s end point [x,y].Dense list of at most 128 finite numbers, subject to the stated integer/shape rules.
Output fieldInterpretation
resultObject containing the fields below.
result.xOverlapWhether the segment envelopes overlap or touch along x.
result.yOverlapWhether the segment envelopes overlap or touch along y.
json
{
  "input": {
    "a": [
      0,
      0
    ],
    "b": [
      2,
      2
    ],
    "c": [
      0,
      2
    ],
    "d": [
      2,
      0
    ]
  },
  "output": {
    "result": {
      "xOverlap": true,
      "yOverlap": true
    }
  }
}

Limitations and assumptions

  • Even two true flags only establish overlapping bounding envelopes; use a segment-intersection operation for an intersection witness.
  • Point components and rectangle bounds are finite within ±1,000,000,000. Rectangles use [minX,minY,maxX,maxY] with ordered inclusive bounds. Floating arithmetic is used without an implicit robustness tolerance.
  • Every declared top-level input is required and unknown fields are rejected. Ordinary strings are limited to 8,192 UTF-16 code units and lists to 128 entries, with tighter operation-specific bounds where stated. JSON text has bounded nesting and node counts.
  • Numeric outputs must be finite and within the absolute safe-integer magnitude; exact larger integers use decimal text. Source positions are zero-based UTF-16 offsets and span ends are exclusive unless a different convention is explicitly stated.

Alternative or Complementary methods

Choose the boundary and coordinate convention explicitly. Use robust geometric predicates or a topology-aware library when near-coincidence, holes, invalid polygons or geographic coordinates matter.

References

  1. Tool behavior and example: Segment Axis Bounding Overlap — tool.io

Similar or alternative tools