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: 27,326 of 183,021
Downloads: 44,979

Daily

Ranking: 11,452 of 183,007
Downloads: 61

Depended by

RankDownloadsName
12,122165,522glimmer-dsl-libui

Depends on

RankDownloadsName
19891,892,822minitest
210167,054,214rdoc
298118,611,642equalizer
46878,990,262matrix
2,1717,917,351minitest-focus
10,837205,831puts_debuggerer
17,52186,388juwelier
45,65322,708rake-tui

Owners

#GravatarHandle
1iconandy_maleh