double calculateCos(double angleValue) => Offset(angleValue, 0).dx == 0 ? 1 : (1 - angleValue * angleValue / 2);