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,437 of 192,454
Downloads: 66,423

Daily

Ranking: 9,838 of 192,434
Downloads: 42

Depended by

RankDownloadsName
11,729231,305glimmer-dsl-libui

Depends on

RankDownloadsName
141,202,275,148minitest
166298,400,142rdoc
319155,244,583matrix
383128,980,472equalizer
2,14311,987,233minitest-focus
6,946687,511puts_debuggerer
14,200156,946juwelier
29,04048,583rake-tui

Owners

#GravatarHandle
1iconandy_maleh