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: 28,945 of 180,434
Downloads: 39,130

Daily

Ranking: 19,712 of 180,417
Downloads: 16

Depended by

RankDownloadsName
12,314147,532glimmer-dsl-libui
175,911878sc2ai

Depends on

RankDownloadsName
20799,696,992minitest
214146,358,572rdoc
276114,428,489equalizer
67955,996,081matrix
2,1257,197,655minitest-focus
17,26782,739juwelier
17,66579,634puts_debuggerer
47,53720,470rake-tui

Owners

#GravatarHandle
1iconandy_maleh