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,814 of 189,455
Downloads: 62,497

Daily

Ranking: 18,293 of 189,432
Downloads: 12

Depended by

RankDownloadsName
11,640220,724glimmer-dsl-libui

Depends on

RankDownloadsName
141,145,898,093minitest
176272,746,980rdoc
329142,069,344matrix
360127,079,109equalizer
2,16111,048,278minitest-focus
7,185609,151puts_debuggerer
14,102150,080juwelier
29,36746,221rake-tui

Owners

#GravatarHandle
1iconandy_maleh