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,418 of 191,941
Downloads: 65,397

Daily

Ranking: 13,777 of 191,854
Downloads: 37

Depended by

RankDownloadsName
11,622228,824glimmer-dsl-libui

Depends on

RankDownloadsName
141,189,096,546minitest
167292,475,759rdoc
321152,312,004matrix
377128,560,829equalizer
2,14511,818,207minitest-focus
6,997671,437puts_debuggerer
14,065155,863juwelier
28,92348,193rake-tui

Owners

#GravatarHandle
1iconandy_maleh