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: 24,623 of 187,224
Downloads: 57,389

Daily

Ranking: 10,995 of 187,196
Downloads: 122

Depended by

RankDownloadsName
11,889199,697glimmer-dsl-libui

Depends on

RankDownloadsName
161,076,293,235minitest
185241,656,823rdoc
335126,368,034matrix
347124,720,505equalizer
2,15510,230,615minitest-focus
7,678511,214puts_debuggerer
14,148141,884juwelier
30,17942,957rake-tui

Owners

#GravatarHandle
1iconandy_maleh