Arrays on the quarter turn
Lay K places on the quarter turn. A direction from home, read as the ratio v/h, goes to the place
k = ⌊K·(2/π)·arctan(v/h)⌋: its share of the turn times K. No length enters. Classically (Euclid III.20), the
radius from the centre of the circle meets the same point at twice the angle and gives it the same place: the
description of the dual hemispherical vantage (DHV), in angles, shown for comparison. Four kinds of array lie on
those places: the index alone, the values on the index, a
constant array, and an array of known length, whose index needs its extent.
The chord from home A to B and the circle on it. Gold: the K places from home, at equal angles; teal: the same places from the centre, at twice the angle (the DHV's, for comparison). The lit place is the one the direction falls in, both ways.
An iterator, not an index. The place formula on this page, the floor of K times the share of the sweep, uses the arctangent to go straight from a reading to a place. That is the DHV's index operator. A read sweeps forward from where it stands and has only the next step; the formula is how the DHV lays the places out.
Related: one turn, one read, counting from zero, the floor's depth, H is a zoom. All the demos.