forked from google/ink
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename
kPi
to kHalfTurn
, and similarly kTwoPi
and kHalfPi
The primary reason for doing this is for naming consistency with our [Jetpack API](https://android.googlesource.com/platform/frameworks/support/+/c40905d87f290be25cdc25454f5dd46ff47e4613/ink/ink-geometry/src/jvmAndroidMain/kotlin/androidx/ink/geometry/Angle.kt#66). The other reason is principle: the `Angle` type is designed to abstract away its units--that is, an `Angle` object is an opaque representation of an angle, and you have to call a method if you want to get a representation of that angle as e.g. a number of radians or a number of degrees--so it doesn't really make sense to have a constant of type `Angle` named `kPi`. It would make more sense to name it something like `kPiRadians` or `k180Degrees` or `kHalfTurn`. This CL adopts the last of these names (again, for consistency with Jetpack). An additional benefit: renaming `::ink::kPi` (which is an `Angle`) removes the ambiguity with `::ink::numbers::kPi` (which is a `double`). PiperOrigin-RevId: 684044741
- Loading branch information
1 parent
e53a520
commit fcac605
Showing
40 changed files
with
825 additions
and
771 deletions.
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.