Skip to content

SP5: CoordinateRectangle.Expanded()#2890

Merged
swharden merged 7 commits intoScottPlot:mainfrom
aespitia:feature/aespitia/issue-2871
Sep 9, 2023
Merged

SP5: CoordinateRectangle.Expanded()#2890
swharden merged 7 commits intoScottPlot:mainfrom
aespitia:feature/aespitia/issue-2871

Conversation

@aespitia
Copy link
Contributor

This feature adds an Expandable method to the rectangle that takes in a Coordinate. The method checks if the coordinate already exists in the rectangle, if it does, then it returns a copy of the existing rectangle, if it doesn't, the method will return an expanded version of the rectangle that does contain the new coordinate.

#2871

@aespitia
Copy link
Contributor Author

let me know if you have any feedback @swharden.

@swharden
Copy link
Member

swharden commented Sep 9, 2023

Thanks @aespitia, this looks great! I got backed-up on some other projects and this PR took a lot longer than typical to get to, but I really appreciate it! 🚀

@swharden swharden linked an issue Sep 9, 2023 that may be closed by this pull request
@swharden swharden merged commit 266717e into ScottPlot:main Sep 9, 2023
@swharden swharden changed the title feat: adding Expandable Rectangle issue 2871 SP5: CoordinateRectangle.Expanded() Sep 9, 2023
@aespitia aespitia deleted the feature/aespitia/issue-2871 branch September 11, 2023 20:11
@aespitia
Copy link
Contributor Author

Thanks @aespitia, this looks great! I got backed-up on some other projects and this PR took a lot longer than typical to get to, but I really appreciate it! 🚀

was a great first check-in experience. your feedback was super helpful and timely, looking forward to using SP5!

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.

SP5: CoordinateRect needs methods for expanding to include Coordinates

2 participants