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,944 of 188,987
Downloads: 61,733

Daily

Ranking: 11,566 of 188,969
Downloads: 68

Depended by

RankDownloadsName
11,630218,920glimmer-dsl-libui

Depends on

RankDownloadsName
141,133,910,572minitest
177267,328,210rdoc
328139,515,693matrix
360126,617,421equalizer
2,16710,849,379minitest-focus
7,258589,118puts_debuggerer
14,079149,393juwelier
29,43845,865rake-tui

Owners

#GravatarHandle
1iconandy_maleh