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

Remove unchecked point constructors #537

Merged
merged 2 commits into from
Sep 26, 2023
Merged

Conversation

peterstace
Copy link
Owner

@peterstace peterstace commented Sep 24, 2023

Description

  • Remove the constructor options and error returns from the AsPoint constructor method on XY.

  • Adds an AsPoint constructor method to Coordinates (to shadow the method on XY).

  • Removes the asUncheckedPoint constructor helper methods.

Check List

Have you:

  • Added unit tests? N/A

  • Add cmprefimpl tests? (if appropriate?) N/A

  • Updated release notes? (if appropriate?) N/A

Related Issue

- Renames the `asUncheckedPoint` helper methods on `XY` and
  `Coordinates` to `asPoint.

- Removes the `newUncheckedPoint` function (it's now functionally
  equivalent to `NewPoint`).
@peterstace peterstace self-assigned this Sep 24, 2023
@peterstace peterstace marked this pull request as draft September 24, 2023 19:01
@peterstace peterstace changed the title Rename unchecked point constructors Remove unchecked point constructors Sep 24, 2023
@peterstace peterstace marked this pull request as ready for review September 24, 2023 19:13
Base automatically changed from cleanup_error_handling_in_dcel_renoding to master September 26, 2023 19:07
@peterstace peterstace merged commit 0f3378d into master Sep 26, 2023
1 check passed
@peterstace peterstace deleted the rename_unchecked_point_ctors branch September 26, 2023 19:08
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

1 participant