getSemiCirclePath method
Implementation
Path getSemiCirclePath(
double arrowSize,
Offset point1,
Offset point2,
double scale,
) {
Path path = Path();
Offset circleCenter = point2 -
VectorUtils.normalizeVector(
VectorUtils.getDirectionVector(point1, point2),
) *
arrowSize *
scale;
path.addArc(
Rect.fromCircle(center: circleCenter, radius: scale * arrowSize),
math.pi - math.atan2(point2.dx - point1.dx, point2.dy - point1.dy),
-math.pi,
);
return path;
}