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

Add new constructor to MPoint with (double, double) as parameter #2453

Merged
merged 1 commit into from Jan 21, 2024

Conversation

charlenni
Copy link
Member

Add a new constructor to MPoint. This is useful in conjunction with SphericalMercator.FromLatLon() which returns a (double, double) if it is called with double, double as a parameter. So it is possible to create a MPoint directly.

Additionally, add some comments if I have currently hands on.

Copy link
Member

@pauldendulk pauldendulk left a comment

Choose a reason for hiding this comment

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

Nice. I was very happy when the tuple support was improved in C#, because it avoids having to construct another point type. I never used it as much as liked. This is another step in the good direction.

@pauldendulk pauldendulk merged commit de9a0fa into Mapsui:main Jan 21, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants