Extract the points of a concretely located trail,
i.e. the
points where one segment ends and the next begins. Note that for
loops, the starting point will
not be repeated at the end. If
you want this behavior, you can use
cutTrail to make the loop
into a line first, which happens to repeat the same point at the start
and end,
e.g. with
trailPoints . mapLoc cutTrail.
Note that it does not make sense to ask for the points of a
Trail by itself; if you want the points of a trail with the
first point at, say, the origin, you can use
trailPoints . (`at`
origin).
This function allows you "observe" the fact that trails are
implemented as lists of segments, which may be problematic if we want
to think of trails as parametric vector functions. This also means
that the behavior of this function may not be stable under future
changes to the implementation of trails. For an unproblematic version
which only yields vertices at which there is a sharp corner, excluding
points where the trail is differentiable, see
trailVertices.
This function is not re-exported from
Diagrams.Prelude; to use
it, import
Diagrams.Trail.