Sha256: 4c15fbca5f3b6c3fc0b50bb05f09ec92610c855fd18c55e087d4af581283f34f
Contents?: true
Size: 190 Bytes
Versions: 48
Compression:
Stored size: 190 Bytes
Contents
# # module VectorUtilities # Return a random vector with a given strength. # def random_vector strength = 1.0 CP::Vec2.new(rand-0.5, rand-0.5).normalize! * strength end end
Version data entries
48 entries across 48 versions & 1 rubygems