Shapes & spaces

Conic arc reconstruction calculator from endpoints tangents and an interior point

Recover a rational quadratic conic arc from two endpoints, their tangent lines and an interior point.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Recover a rational quadratic conic arc from two endpoints, their tangent lines and an interior point.

THE FORMULAB(t)=((1-t)^2 P0+2wt(1-t)P1+t^2 P2)/((1-t)^2+2wt(1-t)+t^2).

A worked example

A quarter unit circle from (1,0) to (0,1), tangent to x=1 and y=1, has control intersection (1,1), weight sqrt(1/2), and the supplied midpoint occurs at t=1/2.

Good to know

Two distinct planar endpoints, nonparallel tangent lines and one admissible interior arc point. Solve control intersection, weight and parameter with residual checks; positive denominator on [0,1] required. Reject unresolved/nonunique input and do not treat NURBS evaluation as the inverse construction.

An inverse construction for a conic arc

Two endpoints and two endpoint tangent lines constrain the shape of a conic arc, but they do not usually determine it completely. One additional point on the intended arc selects the remaining shape parameter. This calculator reconstructs that arc as a rational quadratic curve, providing a control point, weight and the interior point's curve parameter.

This is an inverse geometric problem. Entering arbitrary control points into a curve evaluator answers a different question because the desired tangencies and interior point may then be missed. The reconstruction checks those geometric constraints explicitly, rather than merely drawing a curve that looks close to the five pieces of supplied information.

Conic arc reconstruction calculator from endpoints tangents and an interior point worked exampleP0P2P1Tangent intersection: (1,1)w = √(1/2)Interior point at t = 1/2
Scroll across to see the full diagram.
A quarter unit circle from (1,0) to (0,1), tangent to x=1 and y=1, has control intersection (1,1), weight sqrt(1/2), and the supplied midpoint occurs at t=1/2.

Compare this with the Conic through five points calculator with a unique fit check. Recover a rational quadratic conic segment constrained by endpoint tangents and an interior point, rather than fit a homogeneous conic through five unconstrained points.

Entering endpoints and tangent directions

The two endpoints must be distinct planar points. Supply one nonzero tangent direction at each endpoint; the direction's magnitude does not matter because it describes a line. The tangent lines must intersect at a finite point for this supported representation. Parallel lines require a separate treatment and should be reported as unsupported rather than assigned a huge control coordinate.

The interior point must genuinely lie between the endpoints along an admissible arc. It cannot coincide with an endpoint or with a tangent-control degeneracy. The order of the endpoint rows fixes the direction in which the curve parameter runs. Reversing both endpoint and tangent rows should reverse the parameterization without changing the geometric arc.

Recovering the control triangle

Intersect the endpoint tangent lines to obtain the middle control point P1. Together with the endpoints P0 and P2, it forms a control triangle. Express the supplied arc point in barycentric coordinates with respect to that triangle. The rational quadratic form then relates those three barycentric coefficients to the parameter and the middle weight.

When the endpoint barycentric coefficients are positive, their square-root ratio gives t divided by one minus t. The middle coefficient determines the weight after that parameter is known. Negative or vanishing coefficients can indicate a different branch, a point outside the intended arc or an unresolved degeneracy. The chosen supported domain rejects ambiguous cases rather than silently changing the requested geometry.

Weight and denominator behavior

The rational quadratic numerator blends the control points with coefficients (1-t) squared, twice weight times t times (1-t), and t squared. Dividing by their scalar sum puts the result back in the plane. A positive finite weight makes the denominator positive on the closed parameter interval, avoiding a pole within the displayed arc.

The weight is a shape parameter, not a length or a probability. A weight of one reduces this parameterization to a polynomial quadratic Bezier curve. Other weights can represent elliptical and hyperbolic conic arcs in suitable configurations. A family label alone is less useful than checking that the actual supported arc has the required endpoints, tangents and interior point.

The quarter-circle worked construction

For the default, the endpoints are (1,0) and (0,1). Their tangent lines are x equal to one and y equal to one, so P1 is (1,1). The supplied interior point has both coordinates equal to the square root of one half. Symmetry makes its parameter t equal to one half.

Substituting that parameter into the rational quadratic formula gives the middle weight as the square root of one half, approximately 0.7071067812. The resulting curve is the quarter unit circle in the first quadrant. This example checks the reconstruction without fitting a generic implicit conic to five unrelated points or assuming that the input arc must always be circular.

Checking points and tangent residuals

The recovered curve must interpolate both endpoints and the supplied interior point. Its endpoint derivative directions must be parallel to the entered tangent directions. A small position residual at the interior point does not independently check those tangencies, so both position and direction checks are necessary before accepting the construction.

A useful additional test samples the rational denominator across its interval and verifies its analytic positivity condition. Points on the curve can be checked against an implicit conic equation when one is returned. These diagnostics establish consistency with the entered geometry; they do not measure how accurately rounded input coordinates represent an intended manufactured or observed curve.

Representational and practical limits

The bounded page supports a finite tangent intersection and an admissible positive-weight arc. It does not promise every possible projective conic, a parallel-tangent representation or a unique reconstruction for degenerate data. If the supplied point makes the linear geometry ill-conditioned, the correct response is to request a better-resolved configuration, not to conceal instability with extra displayed digits.

A rational parameter does not generally move at constant speed along the arc. Half of the parameter interval need not mean half the arc length, except in specially symmetric interpretations. If an application needs constant-speed motion or equal-distance sampling, that requires a separate arc-length calculation after the geometric reconstruction has been checked.

A few questions, answered

Can I scale the tangent vectors?

Yes. Any nonzero scalar gives the same tangent line, so the reconstructed geometry should be unchanged.

Why are parallel tangents rejected?

This representation uses a finite middle control point at their intersection; the supported inverse construction does not cover the point-at-infinity case.

Is parameter t an arc-length fraction?

No. Rational Bezier parameterization is generally nonuniform in arc length.

Is every conic arc circular?

No. The quarter circle is a checked example, while other admissible inputs determine other conic arcs.

Find your calculator

Start typing to explore the library.