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: 25,028 of 186,959
Downloads: 54,941

Daily

Ranking: 12,899 of 186,713
Downloads: 86

Depended by

RankDownloadsName
12,106189,085glimmer-dsl-libui

Depends on

RankDownloadsName
161,055,026,805minitest
190231,578,823rdoc
339123,903,785equalizer
349121,015,726matrix
2,1549,944,688minitest-focus
7,840478,093puts_debuggerer
14,181138,440juwelier
30,41241,644rake-tui

Owners

#GravatarHandle
1iconandy_maleh