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: 26,994 of 183,471
Downloads: 46,142

Daily

Ranking: 8,630 of 183,459
Downloads: 55

Depended by

RankDownloadsName
12,132168,090glimmer-dsl-libui

Depends on

RankDownloadsName
19910,051,170minitest
210172,448,676rdoc
304119,254,421equalizer
44083,344,057matrix
2,1768,062,084minitest-focus
10,144238,516puts_debuggerer
17,57486,988juwelier
45,22723,207rake-tui

Owners

#GravatarHandle
1iconandy_maleh