Manuscript Offprint
arXiv:2609.10179A Note on the Point-Clothoid Distance Algorithm
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
HAIBIN YE*, HAO GE*, AND GONG CHENG†
Abstract. Computing the closest point on a clothoid is a recurring task in geometric design, road and railway alignment, and path planning. The efficient algorithm of Frego and Bertolazzi addresses this problem, but its candidate-selection analysis assumes at most one local minimum per search interval. We exhibit admissible configurations with two local minima, raising the question of whether the existing strategy accounts for every possible minimum. Using the geometry of the clothoid evolve, we prove that, for any query point and any proper no-inflection planar clothoid segment with tangent-angle variation at most , the squared-distance function has at most three stationary points; if all three are local extrema, their order is min-max-min. This establishes the completeness of the original candidate-selection logic beyond the one-minimum premise. It also shows that no interior search is needed when neither endpoint derivative test is active, allowing unnecessary midpoint searches to be omitted while retaining numerical fallback. Numerical experiments demonstrate reductions in iteration count and evaluation time.
Key words. clothoid, Euler spiral, point-clothoid distance, stationary points, evolve
MSC codes. 65D17, 65H05, 65H20, 65S05
- Introduction. Clothoids are planar curves whose curvature varies linearly with arc length. Their smooth curvature transitions make them useful in geometric design, road and railway alignment, and curvature-constrained path planning [4, 3, 1]. These applications repeatedly require solving the point-clothoid distance problem: given a query point , determine its closest point on a clothoid segment.
Frego and Bertolazzi [2] developed a comprehensive and efficient algorithm for this problem. Their method exploits the geometry of clothoids to restrict the search interval and employs a Newton-like iteration with carefully selected initial candidates. It provides a highly effective approach for point-clothoid distance and projection computation.
The candidate-selection strategy of [2] is supported by an analysis that assumes at most one local minimum candidate on each no-inflection interval with tangent-angle variation less than . We exhibit an admissible configuration with two local minima. We then prove the sharp upper bound that, for every proper no-inflection segment with tangent-angle variation at most , the squared-distance function has at most three stationary points; if all three are local extrema, they occur in min-max-min order. This count and classification provide a complete justification for the candidate-selection logic of Algorithm A.7 in [2] (hereafter, the distance algorithm) without the one-minimum assumption, including the two-minimum case. Moreover, when neither endpoint derivative tests activates an endpoint search, we prove the no interior local minimum exists. Hence the midpoint is unnecessary as an additional candidate in this derivative-based branch. This geometric redundancy should be distinguished from the midpoint's separate role as a numerical fallback when an activated endpoint iteration fails; our analysis does eliminate that safeguarding role.
To establish the stationary-point bound, we identify stationary points of the squared-distance function with tangent lines of the clothoid evolve passing through the query point. We divide the evolve into four segments with tangent-angle variation , represent each as the graph of a strictly convex function in suitable affine frames, and combine the segment-wise bounds while correcting for shared endpoints.
*H. Ye and H. Ge are co-first authors. †Corresponding author (gongch@tongji.edu.cn).
H. YE, H. GE, AND G. CHENG
The same framework covers the endpoint-degenerate case of zero initial curvature.
The remainder of this manuscript is organized as follows. Section 2 introduces the clothoid and its evolve and establishes the correspondence between clothoid normals and evolve tangents. Section 3 proves the sharp stationary-point bound, classifies the three-extrema case, and derives a reduced candidate-selection strategy with numerical fallback. Section 4 presents the numerical comparison of the original and streamlined algorithms. Finally, Section 5 summarizes the main results and their algorithmic implications.
- Clothoid and Its Evolute. Let , , be an arc-length-parametrized clothoid with tangent angle and curvature . Then
(2.1)
A translation and rotation allow us to set and without loss of generality. We call the clothoid proper when ; for , it is a circle or a line, as treated in [2].
Let and . Wherever , the evolve, i.e., the locus of centers of curvature, is ; under the above normalization, its coordinates are
(2.2)


Fig. 1: The clothoid (blue) and its evolve (red). Left: the full curve and the two evolve branches separated by the inflection point. Right: a no-infection branch with tangent-angle variation ; the green lines are clothoid normals and evolve tangents at corresponding parameters.
Since wherever , the tangent line of evolve at is the normal line of clothoid at . For , the tangent at is understood as a limit. Thus, for any query point , counting clothoid normal lines through is equivalent to counting evolve tangents through .
- Stationary Points of Point-Clothoid Distance Function. The distance algorithm computes the distance from a query point to a standard clothoid segment with no interior inflection and tangent-angle variation less than . It uses derivative information at the two endpoints to determine which endpoint Newton-like iterations should be attempted. At the candidate-selection level, the midpoint provides an additional initialization when neither endpoint derivative test activates. The same midpoint initialization may also serve as a numerical fallback when at least one endpoint search is activated but none of the activated iterations succeeds. The above strategy is supported by the conclusion in Section 3 of [2] that such an interval contains at most one local minimum. Figure 2 nevertheless exhibits an admissible configuration with three stationary points, including two local minima. This raises the question of whether the candidate-selection logic remains complete and motivates a sharp count and classification of the stationary points.


Fig. 2: Left: the clothoid, the query point and the normals at the three stationary points. Right: the distance function . On a clothoid segment with , and angle variation , the distance function has three stationary points: two local minima (green) and one local maximum (orange).
Let and define the smooth squared-distance function
(3.1)
For a proper no-inflection segment with , Lemmas 3.1–3.3 of [2] show that stationary points which are local extrema are simple and isolated, whereas multiple zeros of are stationary inflection points of . In particular, the local extrema alternate. We now establish the required global bound on the number of stationary points.
It suffices to consider the normalized case. The degenerate case , a circle or line, is treated in Section 4 in [2]. For , reversing the parametrization and, if necessary, reflecting the plane preserve distances and tangency multiplicities, so we may assume and . Any no-inflection segment with can then be extended terminally to without losing stationary points. Finally, (3.1) shows that is stationary exactly when the normal line at passes through , equivalently when the tangent line of the evolute at passes through . The
H. YE, H. GE, AND G. CHENG
desired stationary-point bound therefore reduces to the equivalent tangency bound stated below.
THEOREM 3.1 (Number of Stationary Points). Let and let , , be a proper clothoid segment satisfying , , and . Then has at most three stationary points on .
THEOREM 3.1'. Let and let , , be a proper clothoid segment satisfying , , and . Let denote its evolve wherever . Then at most three parameters have an evolve tangent line passing through ; when , the tangent at is the limiting line as .
We prove Theorem 3.1'. Since with and , the only cases are and the endpoint-degenerate case ; the latter will be recovered by a limiting argument at the end of the subsection.
3.1. Number of Evolute Tangents for Nonnegative Initial Curvature. We begin with the nondegenerate case . Let satisfy and define the four closed evolve segments , . The evolve and clothoid have the same tangent-angle variation, so each spans . In either affine frame
the segment is the graph of a function . The frame construction gives and ; it remains only to prove that is strictly convex on .


Fig. 3: Left: after rotation placing the initial evolve tangent parallel to the negative y-axis, the evolve is divided at , , into four segments ; the dashed branch tends to infinity in the positive x-direction after rotation. Right: represented as a strictly convex graph in its two affine frames. The graph and its endpoint tangents (dashed) partition the plane into regions .
LEMMA 3.2. A function f constructed as above is strictly convex on .
Proof. For every segment-frame pair, the same calculation follows after shifting or reversing the local tangent angle. It therefore suffices to display it for in the frame . Let , denote its coordinates.
Since and ,
(3.2)
For , , and hence
(3.3)
Thus f is strictly convex on .
Next, we examine the segment-wise bound of evolve tangents for the five regions in Figure 3. The following conclusions in Propositions 3.3, 3.4, and 3.6 and Corollary 3.5 are required for the bound analysis, the proofs of which are left in the appendix.
PROPOSITION 3.3. Let , , and satisfy
If is finite, set ; if , extend continuously to . Then every point with lies on at most one tangent line to the graph of . If also , no such tangent line exists.
PROPOSITION 3.4. Under the assumptions of Proposition 3.3, if and , no tangent line to the graph of f passes through .
COROLLARY 3.5. Suppose and extend f by
(3.4)
Then is convex on . Consequently, if and , no tangent line to the graph of passes through .
PROPOSITION 3.6. Under the assumptions of Proposition 3.3, at most two tangent lines to the graph of pass through any point . If and either with , or , at most one tangent line passes through .
Applying Propositions 3.3, 3.4, and 3.6 and Corollary 3.5 in the two endpoint affine frames gives the segment-wise bounds in Table 1.
To combine these segment-wise bounds, we first determine the relative positions of the division points , .
Direct calculation gives , , and . The remaining comparisons are linked: using as the integration variable and pairing the positive and negative cosine lobes shows that implies . Thus only three cases occur: Case A has the two displayed inequalities; Case B has both reversed; and Case C has and . Equality in either comparison introduces no additional region, since the resulting boundary sets are already covered by the non-strict bounds in Table 1.
Since the segments are closed, a tangency at an internal division parameter is counted in both adjacent segment bounds. Define
(3.5)
H. YE, H. GE, AND G. CHENG
Table 1: Segment-wise upper bounds for the number of tangents through a query point in the close regions and their boundaries of Figure 3; each result is applied in the relevant endpoint affine frame. Each set in this table is understood without its boundary: the rows listing a single region give the cells without their boundaries, the rows listing a two-region intersection give the edges without their endpoints, and the endpoints appear only in the last row.
| Region | Upper bound | Justification |
|---|---|---|
| 0 | Proposition 3.4, in both frames | |
| 2 | Proposition 3.6 | |
| 0 | Proposition 3.3 () | |
| 1 | Proposition 3.3, frame at | |
| 1 | Proposition 3.3, frame at | |
| (graph of ) | 1 | unique tangent at the point |
| or | 1 | special case of Proposition 3.6 |
| or | 2 | Proposition 3.6 |
| or | 1 | special case of Proposition 3.6 |
| 2 | Proposition 3.6 |
This correction removes only the duplicate occurrence of the same division parameter, not tangencies at distinct parameters.
Superimpose the plane divisions induced by the four segments and let be the bound for from Table 1. We define
(3.6)
which is no less than the actual number of evolve tangents, , i.e., .
LEMMA 3.7. In all Cases , for every . Moreover, only in the closed strip
(3.7)
Proof. Superimposing the four segment-wise partitions in Figure 4, applying Table 1 on every region and boundary, and subtracting the junction corrections in (3.5) gives (3.6); the exhaustive enumeration in Section B and Table 4 of the appendix shows that , with equality only in the strip (3.7), and Figure 6 there gives the corresponding sampled counts.
For the degenerate case where the initial curvature vanishes, the tangency correspondence and four-segment division remain valid when the initial tangent is interpreted as a limit: as , , , and the evolve tangent tends to , the clothoid normal encoding . In the frame , is a convex graph with left endpoint , so the auxiliary tangency results and the bounds in Table 1 still apply; moreover, , making the subdivision the limiting Case A of Figure 4. Hence (3.6) and Lemma 3.7 gives also for , completing the proof of Theorem 3.1'.
3.2. Effectiveness and Optimization of the Distance Algorithm. The distance algorithm uses the endpoints as its initial candidates, replacing the left candidate by an iteration from when and the right candidate by an case A
case B
case C

Fig. 4: Plane subdivisions for Cases A–C. Dashed tangents at and colored segments delimit regions labeled by their tangency upper bounds. Top: full subdivisions; bottom: arrowed enlargements. The smallest regions, and , occur in all three cases.
iteration from when . Since for , these tests may equivalently be written using if , the global minimum is already known. The midpoint branch has two distinct roles: it provides an additional candidate when neither endpoint test activates a search, and it serves as a numerical fallback when at least one endpoint search is activated but none of the activated iterations succeeds. Our analysis concerns only the first role.
By Theorem 3.1, there are at most three stationary points, while stationary inflection points do not change the sign of and local extrema alternate. Thus every interior local minimum activates an endpoint search unless it is the middle extremum of a max-min-max configuration. In that remaining case, and , so either endpoint test activates a search and the midpoint provides the additional candidate. Hence the original candidate-selection logic covers every possible minimum configuration.
We next prove that the remaining configuration cannot occur. Under the standard normalization,
(3.8)
If the extended segment has three stationary points, then from (3.6) and Lemma 3.7 forces ; hence (3.7) and (3.8) give and .
THEOREM 3.8 (Min-Max-Min Pattern). Let denote a proper no-inflection
H. YE, H. GE, AND G. CHENG
clothoid segment with tangent-angle variation at most . The conditions and preclude an interior local minimum. Consequently, if three stationary points are all local extrema, their order is min-max-min.
Proof. Suppose that an interior local minimum exists under the stated endpoint signs. It is a simple zero of , and continuity gives nearest stationary points on its two sides. Normalize the segment and extend it only terminally to tangent-angle variation , so . The three stationary points persist, and Theorem 3.1 allows no others; hence the endpoint inequalities above give . Together with , this yields , so and .
Direct calculation from (2.1) and (2.2), using as the integration variable and pairing opposite half-periods, gives
(3.9)
with limiting values understood when .
If is simple, it is a local maximum and the absence of any later stationary point gives , contradicting the endpoint inequality. If , the query point lies on the two parallel endpoint normal lines, which are distinct by the first inequality in (3.9). The remaining possibility is a multiple zero . Then , where , so . The second inequality in (3.9) gives , contradicting . Hence the endpoint conditions exclude an interior local minimum. A max-min-max configuration satisfies these conditions, so three local extrema must instead have min-max-min order.
Theorem 3.8 therefore eliminates the midpoint initialization as an additional geometric candidate when both endpoint derivative tests are inactive. Indeed, under the condition that and , no interior local minimum exists, and hence the global minimum is attained at one of the two endpoints. This conclusion does not concern numerical failure of an endpoint iteration after that iteration has been activated. Accordingly, the midpoint initialization may still be retained as a numerical fallback when the activated endpoint searches fail to produce a valid candidate. Algorithm C.1 makes this separation explicit.
- Numerical Experiments. We compare the reduced-candidate(RC) method with the original candidate-selection(ORI) procedure of [2] on no-inflection segments with , , and angle variations , . In the present experiments, no activated endpoint iteration failed; hence the numerical fallback was never invoked, and the RC implementation used here coincides with the safeguarded reduced-candidate procedure on all tested cases. Query points form a grid over the segment bounding box enlarged by one unit on each side, and the tolerance is . Experiments use Python 3.11.14, NumPy 2.3.5 with Intel MKL 2023.1, and SciPy 1.16.3 in double precision on a single-threaded Intel Core i7-13700HX computer with 32 Gigabytes of memory and Windows 11 Pro for Workstations. For the iteration-count experiment, each vectorized call processes the full query grid. Figure 5 shows the pointwise iteration counts and savings on a shared scale.
The algorithms agree outside the marked region where neither endpoint search is activated, i.e., where and . Since , with the polar angle of , this region is geometrically the intersection of the half-planes behind the start point and beyond the end point, bounded by the endpoint normals: it is a narrow wedge for , covers nearly the left half-plane for , and extends farther downward for and , with the largest savings

Fig. 5: Iteration maps for , , and , (columns). The top and middle rows show the RC and ORI counts on a shared scale; the bottom row shows the iterations saved, with darker cells indicating larger savings. Each cell displays the average of its four corner samples, so the bottom row is the cellwise difference of the two rows above.
along the initial normal. This region contains 7.29%–29.40% of the grid; skipping the midpoint guess saves at most four iterations per marked point and reduces the full-grid iteration count by 3.80%–12.29%. For timing, we use only these marked points and report the mean compute time of alternating vectorized calls per algorithm and segment. The algorithm for RC method saves 60.9%–70.3% of the evaluation time, while Theorem 3.8 guarantees that this omission removes no geometric minimum-distance candidate.
Table 2: Iteration and timing comparison for , , and , . Iteration statistics use the grid; timings use the marked points and report the mean of alternating vectorized evaluations.
| Δθ | marked points (%) | stationary-point iterations | compute time on marked points | |||||
|---|---|---|---|---|---|---|---|---|
| RC mean | ORI mean | max iter. saved | total iter. reduction (%) | RC (ms) | ORI (ms) | time saved (%) | ||
| π/3 | 7.29 | 3.691 | 3.837 | 2 | 3.80 | 7.00 | 23.56 | 70.3 |
| 2π/3 | 22.02 | 4.235 | 4.676 | 2 | 9.42 | 26.19 | 88.11 | 70.3 |
| 4π/3 | 29.40 | 4.379 | 4.992 | 4 | 12.29 | 63.85 | 174.24 | 63.4 |
| 5π/3 | 17.03 | 4.224 | 4.607 | 4 | 8.31 | 36.28 | 92.67 | 60.9 |
H. YE, H. GE, AND G. CHENG
- Conclusions. In this manuscript, we revisited the point-clothoid distance algorithm of Frego and Bertolazzi. The one-local-minimum characterization in the underlying analysis is not exhaustive: a proper no-inflection clothoid segment with tangent-angle variation at most may contain two local minima. To determine whether the candidate-selection strategy keeps complete, we recast stationary points of the squared-distance function as tangencies from the query point to the clothoid evolve. Decomposing the evolve into four segments and exploiting their strict convexity yields a global tangency bound, including the zero-initial-curvature case.
The resulting classification shows that there are at most three stationary points and that three local extrema can occur only in min-max-min order. Consequently, the endpoint-based candidate-selection logic fully accounts for all possible geometric minimum candidates. When neither endpoint test is active, no interior local minimum exists, and the midpoint need not be searched as an additional candidate. This does not eliminate its separate role as a numerical fallback. The resulting procedure therefore simplifies the candidate-selection logic while preserving the numerical safeguarding mechanism of the original method. The numerical experiments quantify the corresponding savings in iteration count and evaluation time.
Appendix A. Proofs of the auxiliary tangency bounds
This section contains the proofs of Propositions 3.3, 3.4, and 3.6 and Corollary 3.5 in the main manuscript, together with an auxiliary supporting-line lemma used in the proof of Proposition 3.6.
(A.1)
Eliminating gives
(A.2)
where
(A.3)
Since , , so (A.2) and (A.3) imply , a contradiction.
The endpoint cases give the same conclusion. If is finite, its tangent is . If the right endpoint is finite, its limiting tangent is ; its intersection with the tangent at has ordinate . Thus a point with lies on at most one tangent.
Finally, if , every interior tangent at has ordinate at . Neither endpoint tangent can contain a point with and , so no tangent passes through .
Proof of Proposition 3.4
Proof. A nonvertical tangent at passing through would satisfy
(A.4)
Convexity gives , contradicting . The limiting tangent at the right endpoint is the vertical line , which cannot contain a point with .
Proof of Corollary 3.5
Proof. The conditions make the constant extension convex. The supporting-line argument in the proof of Proposition 3.4 then applies directly to .
An Auxiliary Lemma
LEMMA 1.1 (Auxiliary Lemma for Proposition 3.6). Let be a nonempty closed convex set and . At most two supporting lines of pass through . Consequently, where tangent lines are defined, at most two can pass through .
Proof. Strict separation gives a vector v and c > 0 such that
Hence the radial projection
maps into an open semicircle of the unit circle. The map is continuous on , and is connected because it is convex; hence is connected. Every connected subset of an open semicircle is an arc, possibly degenerate, whose closure has at most two endpoints.
A supporting line through must correspond to an endpoint direction of this arc; an interior direction would place points of on both sides of the line. Since a direction and determine a unique line, at most two supporting lines pass through . Every tangent line of a convex set is a supporting line, which proves the final assertion.
Proof of Proposition 3.6
Proof. Let when , and otherwise let be the extension in (3.4). The closure of the epigraph of is convex, and every tangent line considered here is one of its supporting lines. If lies outside this epigraph, the above Lemma 1.1 gives at most two such lines; an interior point lies on none. At a boundary point the supporting line is unique: it is the graph tangent, the horizontal tangent along the constant extension, or the limiting vertical tangent at . This proves the general bound.
For the special case, an interior tangent at meets the x-axis at
(A.5)
Since , we have . If is finite, strict increase of gives , hence . Thus every interior tangent meets the -axis in . Outside this interval, the only possible tangent is the horizontal endpoint tangent when , proving the sharper bound.
Appendix B. Exhaustive enumeration of the tangency bounds
This section organizes the exhaustive verification underlying Lemma 3.7 and Theorem 3.1'. For every set in the plane subdivisions of Figure 4, the four segment-wise bounds from Table 1 are combined with the junction correction to give , an upper bound for the exact tangency count .
Table 4 gives the row-by-row verification. Each row identifies an open region, relative boundary interior, or intersection point and records the applicable case, the
H. YE, H. GE, AND G. CHENG
four component bounds, the total junction correction, and the resulting value of . For example, has and , whereas has and ; both give .
The listed sets cover the whole plane. Primed regions occur only in their corresponding configurations, and the two entries for distinguish Case A from Cases B and C. Equality in either defining comparison merely collapses adjacent sets, which remain covered by the same non-strict boundary bounds.
For comparison, Figure 6 shows the exact stationary-point counts obtained on sampled planar grids for the three configurations. These counts are consistent with the analytic upper bounds enumerated below.

(a) Case A

(b) Case B

(c) Case C
Fig. 6: Number of stationary points of the squared-distance function at sampled points of the plane, equivalently, the number of evolve tangency parameters. The sampled counts do not exceed the analytic upper bounds in Table 4.
Table 3: Definition of closed region . The four-tuple of segmentwise regions defines a certain region in the plane, where denote the region of for segment defined in Table 1. Note that for the same , and share equivalent status, so denote both and in the table.
| Case | Region | Case | Region | ||
|---|---|---|---|---|---|
| A-C | A-C | ||||
| A-C | A-C | ||||
| A-C | A-C | ||||
| A-C | A-C | ||||
| A-C | A-C | ||||
| A-C | A-C | ||||
| A-C | A,C | ||||
| A-C | A | ||||
| A-C | B,C | ||||
| A-C |
Table 4: Verification worksheet for the upper bound on the number of evolve tangency parameters. Each row identifies a region, boundary, or intersection point and records the applicable case, the four segment-wise bounds , the junction correction , and the resulting total bound. Each set in this table excludes its boundary: the Region rows give the cells without their boundaries, the Boundary rows give the edges without their endpoints, and the endpoints appear only in the Point rows.
| Case | Type | Set containing q | ||||||
|---|---|---|---|---|---|---|---|---|
| A-C | Region | 0 | 0 | 0 | 0 | 0 | 0 | |
| A-C | Region | 0 | 0 | 0 | 1 | 0 | 1 | |
| A-C | Region | 0 | 0 | 1 | 0 | 0 | 1 | |
| A-C | Region | 0 | 0 | 0 | 2 | 0 | 2 | |
| A-C | Region | 0 | 0 | 2 | 0 | 0 | 2 | |
| A-C | Region | 0 | 2 | 0 | 0 | 0 | 2 | |
| A-C | Region | 0 | 0 | 1 | 1 | 0 | 2 | |
| A-C | Region | 0 | 1 | 1 | 0 | 0 | 2 | |
| A-C | Region | 0 | 1 | 0 | 1 | 0 | 2 | |
| A-C | Region | 1 | 1 | 0 | 0 | 0 | 2 | |
| A-C | Region | 1 | 0 | 1 | 0 | 0 | 2 | |
| A-C | Region | 1 | 0 | 0 | 1 | 0 | 2 | |
| A-C | Region | 1 | 0 | 1 | 0 | 0 | 2 | |
| A-C | Region | 0 | 1 | 0 | 1 | 0 | 2 | |
| A-C | Region | 2 | 0 | 0 | 1 | 0 | 3 | |
| A-C | Region | 1 | 1 | 0 | 1 | 0 | 3 | |
| A,C | Region | 2 | 0 | 1 | 0 | 0 | 3 | |
| A | Region | 0 | 2 | 0 | 1 | 0 | 3 | |
| B,C | Region | 2 | 0 | 0 | 0 | 0 | 2 | |
| A-C | Boundary | 0 | 0 | 0 | 1 | 0 | 1 | |
| A-C | Boundary | 0 | 0 | 1 | 0 | 0 | 1 | |
| A-C | Boundary | 0 | 0 | 0 | 1 | 0 | 1 | |
| A-C | Boundary | 0 | 0 | 1 | 1 | 1 | 1 | |
| A-C | Boundary | 0 | 0 | 0 | 2 | 0 | 2 | |
| A-C | Boundary | 0 | 0 | 1 | 1 | 0 | 2 | |
| A-C | Boundary | 0 | 0 | 1 | 2 | 1 | 2 | |
| A-C | Boundary | 0 | 0 | 2 | 1 | 1 | 2 | |
| A-C | Boundary | 0 | 1 | 0 | 0 | 0 | 1 | |
| A-C | Boundary | 0 | 2 | 1 | 0 | 1 | 2 | |
| A-C | Boundary | 0 | 1 | 1 | 1 | 1 | 2 | |
| A-C | Boundary | 0 | 1 | 2 | 0 | 1 | 2 | |
| A-C | Boundary | 0 | 1 | 1 | 1 | 1 | 2 | |
| A-C | Boundary | 1 | 2 | 0 | 0 | 1 | 2 | |
| A-C | Boundary | 1 | 1 | 1 | 0 | 1 | 2 | |
| A-C | Boundary | 1 | 1 | 1 | 0 | 1 | 2 | |
| A-C | Boundary | 1 | 0 | 1 | 1 | 1 | 2 | |
| A-C | Boundary | 2 | 0 | 0 | 1 | 0 | 3 | |
| A-C | Boundary | 1 | 0 | 1 | 0 | 0 | 2 | |
| A-C | Boundary | 1 | 1 | 0 | 1 | 1 | 2 | |
| A-C | Boundary | 1 | 1 | 0 | 1 | 0 | 3 | |
| A-C | Boundary | 1 | 0 | 0 | 1 | 0 | 2 | |
| A-C | Boundary | 1 | 1 | 0 | 1 | 0 | 3 | |
| A-C | Boundary | 2 | 1 | 0 | 1 | 1 | 3 | |
| A,C | Boundary | 2 | 0 | 1 | 0 | 0 | 3 | |
| A,C | Boundary | 1 | 0 | 1 | 0 | 0 | 2 | |
| A,C | Boundary | 2 | 0 | 1 | 1 | 1 | 3 | |
| A | Boundary | 0 | 1 | 0 | 1 | 0 | 2 | |
| A | Boundary | 0 | 2 | 0 | 1 | 0 | 3 | |
| A | Boundary | 1 | 2 | 0 | 1 | 1 | 3 | |
| B,C | Boundary | 2 | 1 | 0 | 0 | 1 | 2 |
Continued on the next page
H. YE, H. GE, AND G. CHENG
Table 4 (continued)
| Case | Type | Set containing q | N | |||||
|---|---|---|---|---|---|---|---|---|
| B,C | Boundary | 2 | 0 | 0 | 1 | 0 | 3 | |
| B,C | Boundary | 1 | 0 | 0 | 0 | 0 | 1 | |
| A,C | Point | 1 | 0 | 1 | 0 | 0 | 2 | |
| B | Point | 1 | 0 | 0 | 1 | 0 | 2 | |
| A-C | Point | 0 | 1 | 1 | 0 | 1 | 1 | |
| A-C | Point | 0 | 0 | 1 | 1 | 1 | 1 | |
| A-C | Point | 0 | 0 | 0 | 1 | 0 | 1 | |
| A-C | Point | 2 | 1 | 0 | 1 | 1 | 3 | |
| B | Point | 1 | 0 | 1 | 1 | 1 | 2 | |
| A-C | Point | 1 | 2 | 1 | 0 | 2 | 2 | |
| A-C | Point | 0 | 1 | 2 | 1 | 2 | 2 | |
| A-C | Point | 0 | 0 | 1 | 2 | 1 | 2 | |
| B,C | Point | 1 | 1 | 0 | 0 | 1 | 1 | |
| A | Point | 1 | 1 | 0 | 1 | 1 | 2 | |
| A,C | Point | 2 | 0 | 1 | 1 | 1 | 3 | |
| A,C | Point | 1 | 0 | 1 | 1 | 1 | 2 | |
| A | Point | 0 | 1 | 0 | 1 | 0 | 2 | |
| A | Point | 1 | 2 | 0 | 1 | 1 | 3 | |
| B,C | Point | 1 | 0 | 0 | 1 | 0 | 2 | |
| B,C | Point | 2 | 1 | 0 | 1 | 1 | 3 |
Every value of in Table 4 is at most three. Furthermore, the values equal to three lie in the strip , as asserted in Lemma 3.7.
Appendix C. The Optimized Algorithm. Algorithm C.1 states the resulting reduced candidate-selection procedure. In contrast to the original distance algorithm, the midpoint initialization is invoked only as a numerical fallback; when neither endpoint derivative test activates, Theorem 3.8 guarantees that the global minimum is attained at an endpoint, and no interior search is needed.
Algorithm C.1 Candidate selection with numerical fallback
Require: a proper no-inflection clothoid segment , a query point , an endpoint iteration
Ensure: a candidate for the global minimum of on , or NUMERICALFAILURE
1: if then 2: return 0 3: end if 4: if then 5: return 6: end if 7: ; ; fb false 8: ; {endpoint activity tests} 9: if then 10: ; fb fb 11: end if 12: if then 13: ; fb fb 14: end if 15: if fb then 16: {A numerical fallback as the iterations fail} 17: if then 18: return
19: else 20: return NUMERICALFAILURE 21: end if 22: end if 23: return {reduces to when by Theorem 3.8}
REFERENCES
[1] E. BAKOLAS AND P. TSIOTRAS, On the generation of nearly optimal, planar paths of bounded curvature and bounded curvature gradient, in 2009 American Control Conference, 2009, pp. 385–390, https://doi.org/10.1109/ACC.2009.5160269. [2] M. FREGO AND E. BERTOLAZZI, Point-clothoid distance and projection computation, SIAM Journal on Scientific Computing, 41 (2019), pp. A3326–A3353, https://doi.org/10.1137/18M1200439. [3] D. S. MEEK AND D. J. WALTON, Clothoid spline transition spirals, Mathematics of Computation, 59 (1992), pp. 117–133, https://doi.org/10.2307/2152983. [4] M. E. VÁZQUEZ-MÉNDEZ, G. CASAL, A. CASTRO, AND D. SANTAMARINA, A geometric-identification-free mathematical model for recreating nonsymmetric horizontal railway alignments, Computer-Aided Civil and Infrastructure Engineering, 39 (2024), pp. 2917–2934, https://doi.org/10.1111/mice.13230.