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: 22,426 of 196,721
Downloads: 74,496

Daily

Ranking: 10,700 of 196,694
Downloads: 59

Depended by

RankDownloadsName
11,488257,793glimmer-dsl-libui

Depends on

RankDownloadsName
141,294,745,029minitest
152344,213,097rdoc
308177,060,682matrix
409131,470,488equalizer
2,13813,108,453minitest-focus
6,885793,433puts_debuggerer
14,253165,613juwelier
28,54352,083rake-tui

Owners

#GravatarHandle
1iconandy_maleh