fans function
Implementation
@pragma('vm:prefer-inline')
Iterable<Offset> fans(Offset outward, double step, double maxR) sync* {
final dirs = <Offset>[
outward,
rot(outward, 0.25 * math.pi),
rot(outward, -0.25 * math.pi),
rot(outward, 0.5 * math.pi),
rot(outward, -0.5 * math.pi),
-outward,
];
for (double r = step; r <= maxR; r += step) {
for (final d in dirs) {
yield d * r;
}
}
}