Last active
April 15, 2024 07:26
-
-
Save AndreVero/17287f88cf6ab3b365dabd7a970924d9 to your computer and use it in GitHub Desktop.
Adjust degress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Adjust degrees to start item drawing from the top | |
private const val SELECTED_ANGLE_DEGREES = 180f | |
//... | |
val changeAngle = state.angle.toDouble() - SELECTED_ANGLE_DEGREES | |
//... | |
val itemAngle = changeAngle.degreesToRadians() + angleStep * index.toDouble() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment