agens-no / AGGeometryKit

Quadrilaterals on CALayer, CGGeometry-functions, UIView/CALayer properties and other invaluable tools.
Other
1.27k stars 130 forks source link

Fixed definition of AGKQuadInsetBottom and new definitions. #15

Closed BasitAli closed 10 years ago

BasitAli commented 10 years ago

Hi,

I've fixed the definition for AGKQuadInsetBottom to update q.bl and q.br instead of q.tl and q.tr.

I've also needed two new functions AGKQuadRotate, AGKQuadRotateAroundPoint that helps rotate AGKQuad better than using AGKQuadApplyCGAffineTransform. It makes use of the function CGPointRotatedAroundPoint that was copied over from the MTGeometry library.

Regards, Basit

hfossli commented 10 years ago

Merged it with this modification https://github.com/hfossli/AGGeometryKit/commit/e8c5d9e2d0405d4e64d48ea6daa1362377aa246f

I also wrote tests. You can double check tests if you want. :)

Thank you for contributing!

hfossli commented 10 years ago

New podspec should be available on trunk now