Linear Interpolation Along a Trajectory
Compute the position of an aircraft at a given distance along a polyline trajectory by locating the active segment, computing the local fraction from cumulative arc lengths, and applying linear interpolation between consecutive waypoints.
Step 1 of 157%
Tutorial
Linear Interpolation Between Two Waypoints
A trajectory is a piecewise-linear path through a sequence of waypoints. To track an aircraft's continuous position along this path, we need to interpolate between consecutive waypoints.
Linear interpolation between two waypoints and at parameter is defined as
The endpoints correspond to (giving ) and (giving ). The midpoint is at . Each coordinate is interpolated independently.
For example, with , , and