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 useful functions to Geometry primitives #14

Merged
merged 6 commits into from
Jul 21, 2013
Merged

Conversation

anaisbetts
Copy link
Member

This PR ports most of @jspahrsummers's Archimedes library into Splat and applies them to System.Drawing primitives. There are a few things missing, mostly around CGRect methods from CoreGraphics that don't exist here (though I did port over CGRectDivide)

anaisbetts pushed a commit that referenced this pull request Jul 21, 2013
Add useful functions to Geometry primitives
@anaisbetts anaisbetts merged commit f4030fc into master Jul 21, 2013
public static PointF Floor(this Point This)
{
#if UIKIT
// NB: I have no idea but Archimedes does this, soooooooo....

Choose a reason for hiding this comment

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

You mixed up the conditional here. On OS X, Y = 0 is at the bottom of the screen/view (by default), so ceiling the Y coordinate will round the view upward.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed!

@anaisbetts anaisbetts deleted the rectangle-additions branch December 19, 2013 01:04
@lock lock bot locked and limited conversation to collaborators Jun 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants