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: 21,993 of 199,228
Downloads: 79,238

Daily

Ranking: 14,914 of 199,184
Downloads: 71

Depended by

RankDownloadsName
11,465270,451glimmer-dsl-libui

Depends on

RankDownloadsName
141,358,956,518minitest
142384,735,258rdoc
294193,847,709matrix
424133,124,090equalizer
2,14813,594,507minitest-focus
6,881833,561puts_debuggerer
14,312171,441juwelier
27,85955,454rake-tui

Owners

#GravatarHandle
1iconandy_maleh