normalize2pi method
Normalize point.dy values
Implementation
DataPointPipeline normalize2pi({
double total = 2.0,
double? threshold,
double? spacing,
double? spacingDeg,
bool? trailingSpacing, // true if total >= 2.0 || total <= -2.0 (full circle)
DataPoint? thresholdPoint,
}) => normalize(
total: total * pi,
threshold: threshold,
thresholdPoint: thresholdPoint,
spacing: spacing ?? (spacingDeg != null ? spacingDeg * pi / 180.0 : null ),
trailingSpacing: trailingSpacing ?? total >= 2.0 || total <= -2.0,
);