interpolate¶
- spherical_geometry.great_circle_arc.interpolate(A, B, steps=50)[source]¶
Interpolate along the great circle arc.
- Parameters:
- A, B(x, y, z) triples or Nx3 arrays of triples
The endpoints of the great circle arc. It is assumed thats these points are already normalized.
- stepsint
The number of interpolation steps
- Returns:
- array(x, y, z) triples
The points interpolated along the great circle arc
Notes
This uses Slerp interpolation where Ω is the angle subtended by the arc, and t is the parameter 0 <= t <= 1.
\[\frac{\sin((1 - t)\Omega)}{\sin \Omega}A + \frac{\sin(t \Omega)}{\sin \Omega}B\]