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: 23,529 of 191,254
Downloads: 64,358

Daily

Ranking: 18,279 of 191,174
Downloads: 18

Depended by

RankDownloadsName
11,612226,390glimmer-dsl-libui

Depends on

RankDownloadsName
141,174,633,726minitest
169285,976,002rdoc
321149,157,658matrix
372128,100,021equalizer
2,14811,560,712minitest-focus
7,043652,357puts_debuggerer
14,153151,993juwelier
28,99447,684rake-tui

Owners

#GravatarHandle
1iconandy_maleh