GreatCircle
Great-circle (shortest path on a sphere) math. WWK draws a shape's edges as great-circle arcs, which are NOT straight lines in latitude/longitude — over a long edge the two visibly differ — so anything that has to line up with a drawn edge must follow the arc, not the straight line.
Functions
The point angle radians (an arc on a sphere of radius 1, see angleBetween) away from from, going bearing radians clockwise from north along a great circle. Altitude is from's.
The points strictly between from and to along the great circle joining them, spaced at most maxStepDegrees apart (and none at all if the edge is already shorter than that). Altitude goes straight from from's to to's. Two points that are identical or exactly opposite have no unique great circle; they yield no intermediate points.