arXiv:2609.10179math.NASep 2026

Manuscript Offprint

arXiv:2609.10179

A Note on the Point-Clothoid Distance Algorithm

Haibin Ye, Hao Ge, Gong Cheng

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 2π2\pi, 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

  1. 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 qq, 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 2π2\pi. 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 2π2\pi, 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 π/2\pi/2, 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.

  1. Clothoid and Its Evolute. Let p(s)=(x(s),y(s))T\boldsymbol{p}(s) = (x(s), y(s))^{\mathrm{T}}, s∈[0,L]s \in [0, L], be an arc-length-parametrized clothoid with tangent angle θ(s)=ks2/2+k0s+θ0\theta(s) = ks^{2}/2 + k_{0}s + \theta_{0} and curvature κ(s)=θ′(s)=ks+k0\kappa(s) = \theta'(s) = ks + k_{0}. Then

(2.1)

p(s)=p(0)+∫0s(cos⁡θ(τ)sin⁡θ(τ))dτ.\boldsymbol{p}(s)=\boldsymbol{p}(0)+\int_{0}^{s}\begin{pmatrix}\cos\theta(\tau)\\ \sin\theta(\tau)\end{pmatrix}\mathrm{d}\tau.

A translation and rotation allow us to set p(0)=0\boldsymbol{p}(0) = \mathbf{0} and θ0=0\theta_0 = 0 without loss of generality. We call the clothoid proper when k≠0k \neq 0; for k=0k = 0, it is a circle or a line, as treated in [2].

Let T(s)=(cos⁡θ(s),sin⁡θ(s))T\mathbf{T}(s) = (\cos\theta(s), \sin\theta(s))^{\mathrm{T}} and N(s)=(−sin⁡θ(s),cos⁡θ(s))T\mathbf{N}(s) = (-\sin\theta(s), \cos\theta(s))^{\mathrm{T}}. Wherever κ(s)≠0\kappa(s) \neq 0, the evolve, i.e., the locus of centers of curvature, is e(s)=p(s)+N(s)/κ(s)\boldsymbol{e}(s) = \boldsymbol{p}(s) + \mathbf{N}(s)/\kappa(s); under the above normalization, its coordinates are

(2.2)

xe(s)=∫0scos⁡θ(τ)dτ−sin⁡θ(s)κ(s),ye(s)=∫0ssin⁡θ(τ)dτ+cos⁡θ(s)κ(s).x_{e}(s)=\int_{0}^{s}\cos\theta(\tau)\mathrm{d}\tau-\frac{\sin\theta(s)}{\kappa(s)},\qquad y_{e}(s)=\int_{0}^{s}\sin\theta(\tau)\mathrm{d}\tau+\frac{\cos\theta(s)}{\kappa(s)}.

Figure

Figure

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 2π2\pi; the green lines are clothoid normals and evolve tangents at corresponding parameters.

Since e′(s)=−kN(s)/κ(s)2\boldsymbol{e}'(s) = -k\mathbf{N}(s)/\kappa(s)^2 wherever κ(s)≠0\kappa(s) \neq 0, the tangent line of evolve at e(s)\boldsymbol{e}(s) is the normal line of clothoid at p(s)\boldsymbol{p}(s). For k0=0k_0 = 0, the tangent at s=0s = 0 is understood as a limit. Thus, for any query point q\boldsymbol{q}, counting clothoid normal lines through q\boldsymbol{q} is equivalent to counting evolve tangents through q\boldsymbol{q}.

  1. 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 2π2\pi. 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.

Figure

Figure

Fig. 2: Left: the clothoid, the query point q=(0.233,0.881)⊤\boldsymbol{q} = (0.233, 0.881)^{\top} and the normals at the three stationary points. Right: the distance function d(s)d(s). On a clothoid segment with k=12k = \frac{1}{2}, k0=0k_0 = 0 and angle variation 1.8π<2π1.8\pi < 2\pi, the distance function has three stationary points: two local minima (green) and one local maximum (orange).

Let d(s)=∥p(s)−q∥d(s) = \|p(s) - q\| and define the smooth squared-distance function

(3.1)

D(s)=12d(s)2,D′(s)=(p(s)−q)TT(s).D(s)=\frac{1}{2}d(s)^{2},\quad D^{\prime}(s)=(\boldsymbol{p}(s)-\boldsymbol{q})^{\mathsf{T}}\mathbf{T}(s).

For a proper no-inflection segment with Δθ<2π\Delta\theta < 2\pi, Lemmas 3.1–3.3 of [2] show that stationary points which are local extrema are simple and isolated, whereas multiple zeros of D′D' are stationary inflection points of DD. 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 2π2\pi case. The degenerate case k=0k=0, a circle or line, is treated in Section 4 in [2]. For k≠0k\neq0, reversing the parametrization and, if necessary, reflecting the plane preserve distances and tangency multiplicities, so we may assume k>0k>0 and k0≥0k_0\geq0. Any no-inflection segment with Δθ<2π\Delta\theta<2\pi can then be extended terminally to Δθ=2π\Delta\theta=2\pi without losing stationary points. Finally, (3.1) shows that s∗s_* is stationary exactly when the normal line at p(s∗)\boldsymbol{p}(s_*) passes through q\boldsymbol{q}, equivalently when the tangent line of the evolute at e(s∗)e(s_*) passes through q\boldsymbol{q}. 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 q∈R2\mathbf{q} \in \mathbb{R}^2 and let p(s)\mathbf{p}(s), s∈[0,s2π]s \in [0, s_{2\pi}], be a proper clothoid segment satisfying k>0k > 0, k0≥0k_0 \geq 0, and θ(s2π)−θ(0)=2π\theta(s_{2\pi}) - \theta(0) = 2\pi. Then D(s)D(s) has at most three stationary points on [0,s2π][0, s_{2\pi}].

THEOREM 3.1'. Let q∈R2\mathbf{q} \in \mathbb{R}^2 and let p(s)\mathbf{p}(s), s∈[0,s2π]s \in [0, s_{2\pi}], be a proper clothoid segment satisfying k>0k > 0, k0≥0k_0 \geq 0, and θ(s2π)−θ(0)=2π\theta(s_{2\pi}) - \theta(0) = 2\pi. Let e(s)\mathbf{e}(s) denote its evolve wherever κ(s)≠0\kappa(s) \neq 0. Then at most three parameters s∈[0,s2π]s \in [0, s_{2\pi}] have an evolve tangent line passing through q\mathbf{q}; when k0=0k_0 = 0, the tangent at s=0s = 0 is the limiting line as s→0+s \to 0^+.

We prove Theorem 3.1'. Since κ(s)=θ′(s)=k0+ks\kappa(s) = \theta'(s) = k_0 + ks with k>0k > 0 and k0≥0k_0 \geq 0, the only cases are k0>0k_0 > 0 and the endpoint-degenerate case k0=0k_0 = 0; 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 k0>0k_0 > 0. Let sαs_\alpha satisfy θ(sα)=α\theta(s_\alpha) = \alpha and define the four closed evolve segments Γi=e([s(i−1)π/2,siπ/2])\Gamma_i = e([s_{(i-1)\pi/2}, s_{i\pi/2}]), i=1,…,4i = 1, \ldots, 4. The evolve and clothoid have the same tangent-angle variation, so each Γi\Gamma_i spans π/2\pi/2. In either affine frame

[e(s(i−1)π/2);−N(s(i−1)π/2),T(s(i−1)π/2)]or[e(siπ/2);N(siπ/2),T(siπ/2)],[\mathbf{e}(s_{(i-1)\pi/2});-\mathbf{N}(s_{(i-1)\pi/2}),\mathbf{T}(s_{(i-1)\pi/2})]\quad\mathrm{o r}\quad[\mathbf{e}(s_{i\pi/2});\mathbf{N}(s_{i\pi/2}),\mathbf{T}(s_{i\pi/2})],

the segment is the graph of a function f:[0,M]→R,0<M<∞f:[0,M]\to\mathbb{R},0<M<\infty. The frame construction gives f(0)=f′(0)=0f(0)=f'(0)=0 and lim⁡x→Mf′(x)=∞\lim_{x\to M}f'(x)=\infty; it remains only to prove that ff is strictly convex on (0,M)(0,M).

Figure

Figure

Fig. 3: Left: after rotation placing the initial evolve tangent parallel to the negative y-axis, the evolve is divided at sβs_{\beta}, β=0,π/2,π,3π/2,2π\beta = 0, \pi/2, \pi, 3\pi/2, 2\pi, into four segments Γ1−Γ4\Gamma_1 - \Gamma_4; the dashed κ→0\kappa \to 0 branch tends to infinity in the positive x-direction after rotation. Right: Γi\Gamma_i represented as a strictly convex graph in its two affine frames. The graph and its endpoint tangents (dashed) partition the plane into regions A1−A5A_1 - A_5.

LEMMA 3.2. A function f constructed as above is strictly convex on (0,M)(0, M).

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 Γ2\Gamma_2 in the frame [e(sπ/2);−N(sπ/2),T(sπ/2)][e(s_{\pi/2});-\mathbf{N}(s_{\pi/2}),\mathbf{T}(s_{\pi/2})]. Let (xγ(s),yγ(s)),s∈[sπ/2,sπ](x_{\gamma}(s),y_{\gamma}(s)),s\in[s_{\pi/2},s_{\pi}], denote its coordinates.

Since θ(s)=ks2/2+k0s\theta(s) = ks^{2}/2 + k_{0}s and κ(s)=ks+k0\kappa(s) = ks + k_{0},

(3.2)

xγ′(s)=ksin⁡θ(s)κ(s)2,yγ′(s)=−kcos⁡θ(s)κ(s)2.x_{\gamma}^{\prime}(s)=\frac{k\sin\theta(s)}{\kappa(s)^{2}},\qquad y_{\gamma}^{\prime}(s)=-\frac{k\cos\theta(s)}{\kappa(s)^{2}}.

For s∈(sπ/2,sπ)s \in (s_{\pi/2}, s_{\pi}), xγ′(s)>0x_{\gamma}^{\prime}(s) > 0, and hence

(3.3)

f′(x)=yγ′(s)xγ′(s)=−cot⁡θ(s),f′′(x)=κ(s)3ksin⁡3θ(s)>0.f^{\prime}(x)=\frac{y_{\gamma}^{\prime}(s)}{x_{\gamma}^{\prime}(s)}=-\cot\theta(s),\qquad f^{\prime\prime}(x)=\frac{\kappa(s)^{3}}{k\sin^{3}\theta(s)}>0.

Thus f is strictly convex on (0,M)(0, M).

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 a∈Ra \in \mathbb{R}, b∈[−∞,a)b \in [-\infty, a), and f∈C2((b,a))f \in C^2((b, a)) satisfy

f′(x)>0,f′′(x)>0,lim⁡x→b+f(x)=lim⁡x→b+f′(x)=0,lim⁡x→a−f′(x)=∞.f^{\prime}(x)>0,\qquad f^{\prime\prime}(x)>0,\qquad\lim_{x\to b^{+}}f(x)=\lim_{x\to b^{+}}f^{\prime}(x)=0,\qquad\lim_{x\to a^{-}}f^{\prime}(x)=\infty.

If bb is finite, set f(b)=0f(b) = 0; if lim⁡x→a−f(x)<∞\lim_{x \to a^-} f(x) < \infty, extend ff continuously to aa. Then every point q=(qx,qy)⊤\mathbf{q} = (q_x, q_y)^\top with qy<0q_y < 0 lies on at most one tangent line to the graph of ff. If also qx>aq_x > a, no such tangent line exists.

PROPOSITION 3.4. Under the assumptions of Proposition 3.3, if qx∈[b,a)q_x \in [b, a) and qy>f(qx)q_y > f(q_x), no tangent line to the graph of f passes through q\mathbf{q}.

COROLLARY 3.5. Suppose b>−∞b > -\infty and extend f by

(3.4)

F(x)={0,x<b,f(x),b≤x<a.F(x)=\left\{\begin{aligned}0,&\quad x<b,\\ f(x),&\quad b\leq x<a.\end{aligned}\right.

Then FF is convex on (−∞,a)(-\infty, a). Consequently, if qx<aq_x < a and qy>F(qx)q_y > F(q_x), no tangent line to the graph of FF passes through q\mathbf{q}.

PROPOSITION 3.6. Under the assumptions of Proposition 3.3, at most two tangent lines to the graph of ff pass through any point q∈R2\mathbf{q} \in \mathbb{R}^2. If qy=0q_y = 0 and either b>−∞b > -\infty with qx≤bq_x \leq b, or qx>aq_x > a, at most one tangent line passes through q\mathbf{q}.

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 e(sβ)\boldsymbol{e}(s_{\beta}), β=0,π/2,π,3π/2,2π\beta = 0, \pi/2, \pi, 3\pi/2, 2\pi.

Direct calculation gives ye(s0)>ye(sπ)y_{e}(s_{0}) > y_{e}(s_{\pi}), xe(sπ/2)<xe(s3π/2)x_{e}(s_{\pi/2}) < x_{e}(s_{3\pi/2}), and ye(sπ)<ye(s2π)y_{e}(s_{\pi}) < y_{e}(s_{2\pi}). The remaining comparisons are linked: using θ\theta as the integration variable and pairing the positive and negative cosine lobes shows that xe(sπ/2)<xe(s2π)x_{e}(s_{\pi/2}) < x_{e}(s_{2\pi}) implies ye(s0)>ye(s3π/2)y_{e}(s_{0}) > y_{e}(s_{3\pi/2}). Thus only three cases occur: Case A has the two displayed inequalities; Case B has both reversed; and Case C has ye(s0)>ye(s3π/2)y_{e}(s_{0}) > y_{e}(s_{3\pi/2}) and xe(sπ/2)>xe(s2π)x_{e}(s_{\pi/2}) > x_{e}(s_{2\pi}). 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 Γi\Gamma_{i} are closed, a tangency at an internal division parameter is counted in both adjacent segment bounds. Define

(3.5)

δj(q)={1,qlies on the tangent line ate(sjπ/2),0,otherwise,j=1,2,3.\delta_{j}(\boldsymbol{q})=\begin{cases}1,&\boldsymbol{q}\text{lies on the tangent line at}\boldsymbol{e}(s_{j\pi/2}),\\ 0,&\text{otherwise},\end{cases}\qquad j=1,2,3.

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 AiA_i 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.

RegionUpper boundJustification
A1A_10Proposition 3.4, in both frames
A2A_22Proposition 3.6
A3A_30Proposition 3.3 (qx>a,qy<0q_x > a, q_y < 0)
A4A_41Proposition 3.3, frame at e(s(i−1)π/2)e(s_{(i-1)\pi/2})
A5A_51Proposition 3.3, frame at e(siπ/2)e(s_{i\pi/2})
A1∩A2A_1 \cap A_2 (graph of ff)1unique tangent at the point
A1∩A4A_1 \cap A_4 or A1∩A5A_1 \cap A_51special case of Proposition 3.6
A2∩A4A_2 \cap A_4 or A2∩A5A_2 \cap A_52Proposition 3.6
A3∩A4A_3 \cap A_4 or A3∩A5A_3 \cap A_51special case of Proposition 3.6
A2∩A3∩A4∩A5A_2 \cap A_3 \cap A_4 \cap A_52Proposition 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 ui(q)u_i(q) be the bound for Γi\Gamma_i from Table 1. We define

(3.6)

N^(q):=∑i=14ui(q)−∑j=13δj(q),\widehat{N}(q):=\sum_{i=1}^{4} u_{i}(q)-\sum_{j=1}^{3} \delta_{j}(q),

which is no less than the actual number of evolve tangents, N(q)N(q), i.e., N(q)≤N^(q)N(q) \leq \widehat{N}(q).

LEMMA 3.7. In all Cases A−CA-C, N^(q)≤3\widehat{N}(q) \leq 3 for every q∈R2q \in \mathbb{R}^2. Moreover, N^(q)=3\widehat{N}(q) = 3 only in the closed strip

(3.7)

x(0)≤qx≤x(s2π).x(0) \leq q_x \leq x(s_{2\pi}).

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 N^≤3\widehat{N} \leq 3, with equality only in the strip (3.7), and Figure 6 there gives the corresponding sampled counts. □\square

For the degenerate case where the initial curvature k0k_0 vanishes, the tangency correspondence and four-segment division remain valid when the initial tangent is interpreted as a limit: as s→0+s \to 0^+, ye(s)→+∞y_e(s) \to +\infty, xe(s)→0x_e(s) \to 0, and the evolve tangent tends to x=0x = 0, the clothoid normal encoding D′(0)=0D'(0) = 0. In the frame [O;[0,−1]⊤,[1,0]⊤][O; [0,-1]^\top, [1,0]^\top], Γ1\Gamma_1 is a convex graph with left endpoint b=−∞b = -\infty, so the auxiliary tangency results and the bounds in Table 1 still apply; moreover, xe(sπ/2)<xe(s2π)x_e(s_{\pi/2}) < x_e(s_{2\pi}), making the subdivision the limiting Case A of Figure 4. Hence (3.6) and Lemma 3.7 gives N(q)≤3N(q) \leq 3 also for k0=0k_0 = 0, 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 s=0s = 0 when d′(0)<0d'(0) < 0 and the right candidate by an case A

case B

case C

Figure

Fig. 4: Plane subdivisions for Cases A–C. Dashed tangents at e(sβ)\boldsymbol{e}(s_{\beta}) and colored segments Γ1−Γ4\Gamma_{1}-\Gamma_{4} delimit regions labeled by their tangency upper bounds. Top: full subdivisions; bottom: arrowed enlargements. The smallest regions, Ω4\Omega_{4} and Ω5\Omega_{5}, occur in all three cases.

iteration from s=Ls = L when d′(L)>0d'(L) > 0. Since D′=dd′D' = dd' for d>0d > 0, these tests may equivalently be written using D′;D'; if d=0d = 0, 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 D′D' 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, D′(0)≥0D'(0) \geq 0 and D′(L)≤0D'(L) \leq 0, 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)

D′(s0)=−qx,D′(s2π)=x(s2π)−qx.D^{\prime}(s_{0})=-q_{x},\qquad D^{\prime}(s_{2\pi})=x(s_{2\pi})-q_{x}.

If the extended 2π2\pi segment has three stationary points, then N(q)≤N^(q)≤3N(\boldsymbol{q}) \leq \widehat{N}(\boldsymbol{q}) \leq 3 from (3.6) and Lemma 3.7 forces N(q)=N^(q)=3N(\boldsymbol{q}) = \widehat{N}(\boldsymbol{q}) = 3; hence (3.7) and (3.8) give D′(s0)≤0D'(s_0) \leq 0 and D′(s2π)≥0D'(s_{2\pi}) \geq 0.

THEOREM 3.8 (Min-Max-Min Pattern). Let p(s)\boldsymbol{p}(s) denote a proper no-inflection

H. YE, H. GE, AND G. CHENG

clothoid segment with tangent-angle variation at most 2π2\pi. The conditions D′(0)≥0D'(0) \geq 0 and D′(L)≤0D'(L) \leq 0 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 mm exists under the stated endpoint signs. It is a simple zero of D′D', and continuity gives nearest stationary points ℓ<m<r\ell < m < r on its two sides. Normalize the segment and extend it only terminally to tangent-angle variation 2π2\pi, so s0=0s_0 = 0. The three stationary points persist, and Theorem 3.1 allows no others; hence the endpoint inequalities above give D′(s0)≤0D'(s_0) \leq 0. Together with D′(0)≥0D'(0) \geq 0, this yields D′(s0)=0D'(s_0) = 0, so ℓ=s0\ell = s_0 and qx=0q_x = 0.

Direct calculation from (2.1) and (2.2), using θ\theta as the integration variable and pairing opposite half-periods, gives

(3.9)

x(s2π)>x(s0),xe(sα)>xe(s0)=0(0<α≤2π),x(s_{2\pi})>x(s_{0}),\qquad x_{e}(s_{\alpha})>x_{e}(s_{0})=0\quad(0<\alpha\leq2\pi),

with limiting values understood when k0=0k_{0}=0.

If r<s2πr < s_{2\pi} is simple, it is a local maximum and the absence of any later stationary point gives D′(s2π)<0D'(s_{2\pi}) < 0, contradicting the endpoint inequality. If r=s2πr = s_{2\pi}, 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 r<s2πr < s_{2\pi}. Then D′(r)=D′′(r)=0D'(r) = D''(r) = 0, where D′′(r)=1+κ(r)(p(r)−q)⊤N(r)D''(r) = 1 + \kappa(r)(\boldsymbol{p}(r) - \boldsymbol{q})^\top \mathbf{N}(r), so q=e(r)\boldsymbol{q} = \boldsymbol{e}(r). The second inequality in (3.9) gives qx>0q_x > 0, contradicting qx=0q_x = 0. 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 D′(0)≥0D'(0) \geq 0 and D′(L)≤0D'(L) \leq 0, 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.

  1. Numerical Experiments. We compare the reduced-candidate(RC) method with the original candidate-selection(ORI) procedure of [2] on no-inflection segments with k=1/2k = 1/2, k0=π/2k_0 = \sqrt{\pi/2}, and angle variations nπ/3n\pi/3, n=1,2,4,5n = 1, 2, 4, 5. 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 1000×10001000 \times 1000 grid over the segment bounding box enlarged by one unit on each side, and the tolerance is ϵ=2−23\epsilon = 2^{-23}. 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 d′(0)≥0d'(0) \geq 0 and d′(L)≤0d'(L) \leq 0. Since d′(s)=cos⁡(θ(s)−ϕ(s))d'(s) = \cos(\theta(s) - \phi(s)), with ϕ(s)\phi(s) the polar angle of p(s)−q\boldsymbol{p}(s) - \boldsymbol{q}, 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 Δθ=π/3\Delta\theta = \pi/3, covers nearly the left half-plane for 2π/32\pi/3, and extends farther downward for 4π/34\pi/3 and 5π/35\pi/3, with the largest savings

Figure

Fig. 5: Iteration maps for k=1/2k = 1/2, k0=π/2k_0 = \sqrt{\pi/2}, and Δθ=nπ/3\Delta\theta = n\pi/3, n=1,2,4,5n = 1,2,4,5 (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 10410^4 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 k=1/2k = 1/2, k0=π/2k_0 = \sqrt{\pi/2}, and Δθ=nπ/3\Delta\theta = n\pi/3, n=1,2,4,5n = 1,2,4,5. Iteration statistics use the 1000×10001000 \times 1000 grid; timings use the marked points and report the mean of 10410^4 alternating vectorized evaluations.

Δθmarked points (%)stationary-point iterationscompute time on marked points
RC meanORI meanmax iter. savedtotal iter. reduction (%)RC (ms)ORI (ms)time saved (%)
π/37.293.6913.83723.807.0023.5670.3
2π/322.024.2354.67629.4226.1988.1170.3
4π/329.404.3794.992412.2963.85174.2463.4
5π/317.034.2244.60748.3136.2892.6760.9

H. YE, H. GE, AND G. CHENG

  1. 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 2π2\pi 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 π/2\pi/2 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.