Categories: None [Edit]

perfect-shape

https://rubygems.org/gems/perfect-shape
https://github.com/AndyObtiva/perfect-shape
Perfect Shape is a collection of pure Ruby geometric algorithms that are mostly useful for GUI manipulation like checking viewport rectangle intersection or containment of a mouse click point in popular geometry shapes such as rectangle, square, arc (open, chord, and pie), ellipse, circle, polygon, and paths containing lines, quadratic bézier curves, and cubic bezier curves, potentially with affine transforms applied like translation, scale, rotation, shear/skew, and inversion (including both the Ray Casting Algorithm, aka Even-odd Rule, and the Winding Number Algorithm, aka Nonzero Rule). Additionally, it contains some purely mathematical algorithms like IEEEremainder (also known as IEEE-754 remainder).

Total

Ranking: 24,309 of 187,950
Downloads: 59,325

Daily

Ranking: 13,469 of 187,922
Downloads: 85

Depended by

RankDownloadsName
11,782207,686glimmer-dsl-libui

Depends on

RankDownloadsName
151,100,813,206minitest
180252,918,034rdoc
332132,461,038matrix
353125,517,175equalizer
2,15810,488,618minitest-focus
7,530543,183puts_debuggerer
14,098145,344juwelier
29,80544,275rake-tui

Owners

#GravatarHandle
1iconandy_maleh