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: 22,060 of 198,430
Downloads: 78,145

Daily

Ranking: 18,562 of 198,401
Downloads: 21

Depended by

RankDownloadsName
11,468267,657glimmer-dsl-libui

Depends on

RankDownloadsName
141,341,705,701minitest
142373,659,467rdoc
297189,390,302matrix
421132,691,172equalizer
2,14513,480,605minitest-focus
6,890818,890puts_debuggerer
14,280170,286juwelier
27,89154,867rake-tui

Owners

#GravatarHandle
1iconandy_maleh