Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: use radians2Degrees const from vector_math #1763

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

josxha
Copy link
Contributor

@josxha josxha commented Dec 7, 2023

This PR is a follow up to #1743.
It makes use of the radians2Degrees from the vector_math package.

@JaffaKetchup
Copy link
Member

Are there any other conversions that can be replaced? Let's just replace all of them now, and remove the leftover old functions.

@josxha
Copy link
Contributor Author

josxha commented Dec 7, 2023

These were the leftover usages of these functions from latlong2:

I currently know very little about the vector_math package but we can keep this PR open and turn it into an general "make better use of vector_math" PR.

Copy link
Member

@JaffaKetchup JaffaKetchup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Feel free to merge this now, we can integrate more vector_math later.

Copy link
Collaborator

@mootw mootw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm as long as we also remove the function definition of radianToDeg

@JaffaKetchup
Copy link
Member

(that concerned me as well, so I checked. it's from latlong2.)

@josxha josxha merged commit 135180b into fleaflet:master Dec 7, 2023
6 checks passed
@josxha josxha deleted the use-vector_math branch December 7, 2023 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants