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,685 of 180,717
Downloads: 39,966

Daily

Ranking: 10,302 of 180,709
Downloads: 79

Depended by

RankDownloadsName
12,255150,312glimmer-dsl-libui
175,3311,083sc2ai

Depends on

RankDownloadsName
19810,090,385minitest
215148,276,585rdoc
278114,910,552equalizer
65358,406,985matrix
2,1357,279,923minitest-focus
17,31383,139juwelier
17,60180,954puts_debuggerer
47,34320,744rake-tui

Owners

#GravatarHandle
1iconandy_maleh