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,163 of 188,252
Downloads: 60,249

Daily

Ranking: 16,224 of 188,232
Downloads: 27

Depended by

RankDownloadsName
11,728211,682glimmer-dsl-libui

Depends on

RankDownloadsName
141,112,504,629minitest
179258,159,855rdoc
329135,095,401matrix
355125,882,393equalizer
2,16410,611,188minitest-focus
7,401561,519puts_debuggerer
14,080147,109juwelier
29,68444,817rake-tui

Owners

#GravatarHandle
1iconandy_maleh