How this calculation works
A centerline can remain inside a channel while the bow, stern or side extends outside. This calculator places a rectangular hull at supplied positions and headings, compares its edges with a simple channel polygon, and adds an explicit bound for motion between the supplied poses. It is a geometric clearance study rather than a point-track calculation.
Continuous clearance lower bound = minimum sampled hull clearance − half-step translation/rotation bound − allowance.A worked example
The prefilled example gives Conservative path margin m = 4.5. This demonstration uses supplied example data, not an approved vessel operating condition.
Good to know
Rectangular hull, simple channel polygon, local coordinates m. Between poses, center translates linearly and heading follows shortest linear angular interpolation. Half-step translation+corner-radius rotation bounds unsampled motion; a nonpositive bound is inconclusive, not an automatic collision.
Reference: Engineering method and conventions (opens in a new tab) ↗
A ship occupies more than its centerline
A centerline can remain inside a channel while the bow, stern or side extends outside. This calculator places a rectangular hull at supplied positions and headings, compares its edges with a simple channel polygon, and adds an explicit bound for motion between the supplied poses. It is a geometric clearance study rather than a point-track calculation.
The rectangle is an approximation to a selected vessel footprint. Actual hull shape, fendering, appendages and navigation uncertainty may require different allowances or geometry. Neither a sampled clearance nor a positive conservative bound models bank forces, squat or how a vessel would respond to helm and propulsion commands.
For a related navigation or vessel calculation, use the Bridge air-draft clearance calculator with tide and ship loading. Compare the model and input conventions before combining results.
Read more: Engineering method and conventions (opens in a new tab) ↗
Define local coordinates and the hull reference
Channel vertices and pose centers use one local east-north plane in metres. Hull length and beam are centered on the supplied pose point, with heading clockwise from true north. That center convention matters: positions of a bow-mounted antenna need conversion before they represent the rectangle’s center.
The channel polygon must be simple, with no self-intersecting edges. The model can represent a concave boundary, so checking only whether hull corners lie inside would be insufficient; a hull edge could cross a re-entrant channel boundary. The implementation therefore examines edge intersections and segment distances as well as vertex containment.
Read more: Engineering method and conventions (opens in a new tab) ↗
Sampled hull clearance and containment
At each pose, the forward and starboard hull directions rotate with heading, placing the four rectangular corners in the local plane. The minimum edge-to-boundary distance is evaluated along with containment and crossings. A wholly contained footprint has positive clearance, a boundary crossing gives zero, and an outside footprint can have a negative signed result.
These sampled values describe only the supplied poses. They do not by themselves prove that the vessel remains inside between them. Turning can sweep a corner beyond the endpoint footprints, even when center positions look well separated from the banks. This is why the between-pose assumption and motion bound are essential parts of the output.
Bound unsampled motion conservatively
Between two poses, center position is assumed to move linearly and heading to follow the shortest linear angular change. Half the center displacement plus half the corner-radius angular travel bounds how far an intermediate footprint can move from a nearby sampled footprint. The calculator subtracts the largest such bound and the entered uncertainty allowance from the minimum sampled clearance.
A positive remaining bound establishes containment only under that interpolation and geometric model. A nonpositive bound is inconclusive: the hull may still fit, but the samples are too coarse or the allowance too large to establish it through this bound. Refine the poses and inspect sampled violations rather than labeling every inconclusive bound an actual collision.
A straight-transit worked example
Use a channel rectangle extending from east−20to20m and north−5to5m. A10m-long,4m-wide hull centered at(0,0)heading east has side clearance3m. At a second center(5,0)with unchanged heading, the minimum sampled clearance remains3m; the longitudinal end clearance is larger.
The center displacement is5m, so the half-step translation bound is2.5m and the rotation term is zero. With no additional uncertainty, conservative path margin is0.5m. The actual straight interpolation has3m side clearance, showing that the bound deliberately sacrifices sharpness to avoid claiming an unsupported gap between sparse samples.
Sampling and reference-point sensitivity
Adding more poses along the same declared path reduces the maximum half-step movement bound and can turn an inconclusive result into a positive bound without changing the underlying path. That is refinement of a conservative numerical check, not an improvement in actual vessel handling or a reduction in environmental uncertainty.
Heading interpolation also needs care near the north reference. A change from359°to1°is a short2°turn under the shortest-angle convention, not a358°rotation. If the intended motion includes a long turn, provide intermediate headings that state it explicitly; the calculator cannot infer that intention from the two endpoint angles alone.
Reference and clearance-study boundary
The geometric transformations and distance bound are derived from the declared rigid rectangle and pose interpolation. Vessel manoeuvring references provide context but do not certify this simplified envelope. A meaningful figure should show the rectangle, sampled centers, channel edges and deducted movement bound, with the centerline distinguished from hull extent.
Use the result for educational geometry and scenario review. It does not replace a surveyed channel, vessel-specific swept-path analysis or pilotage procedure. Preserve the coordinate frame, antenna-to-center correction, length, beam, sample spacing and uncertainty allowance with the output, so another reader can see exactly which containment claim was established and which remains unresolved. Rectangular hull, simple channel polygon, local coordinates m. Between poses, center translates linearly and heading follows shortest linear angular interpolation. Half-step translation+corner-radius rotation bounds unsampled motion; a nonpositive bound is inconclusive, not an automatic collision.
A few questions, answered
Does a centerline inside the channel prove the hull fits?
No. Hull edges and turning corners can extend outside while the reference point remains inside.
Does a nonpositive conservative margin mean collision?
Not necessarily. It may be inconclusive because poses are sparse; inspect sampled violations and refine the input.
What point do poses describe?
The center of the rectangular footprint. Convert antenna or other reference-point positions if necessary.
How is359°to1°interpolated?
As the shortest2°heading change. Supply intermediate headings if a longer rotation is intended.