perlin 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 0.2.1
2
+ -----
3
+ * Fix for negative x/y in Classic noise. Thanks Shawn Anderson!
4
+
1
5
  0.2.0
2
6
  -----
3
7
 
data/ext/perlin/classic.c CHANGED
@@ -22,10 +22,10 @@ float perlin_smooth_noise_2d(const int x, const int y)
22
22
 
23
23
  float perlin_interpolated_noise_2d(const float x, const float y)
24
24
  {
25
- const int integer_X = (int)x;
25
+ const int integer_X = floor(x);
26
26
  const float fractional_X = x - integer_X;
27
27
 
28
- const int integer_Y = (int)y;
28
+ const int integer_Y = floor(y);
29
29
  const float fractional_Y = y - integer_Y;
30
30
 
31
31
  const float v1 = perlin_smooth_noise_2d(integer_X, integer_Y);
@@ -1,5 +1,5 @@
1
1
  # Perlin noise generation.
2
2
  module Perlin
3
3
  # Current version of the gem.
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perlin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-12-03 00:00:00.000000000 Z
14
+ date: 2015-02-25 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: RedCloth
@@ -181,24 +181,24 @@ files:
181
181
  - lib/perlin/generator.rb
182
182
  - lib/perlin/version.rb
183
183
  - lib/perlin.rb
184
- - ext/perlin/classic.c
185
- - ext/perlin/generator.c
186
184
  - ext/perlin/perlin.c
187
185
  - ext/perlin/simplex.c
188
- - ext/perlin/classic.h
189
- - ext/perlin/generator.h
186
+ - ext/perlin/classic.c
187
+ - ext/perlin/generator.c
190
188
  - ext/perlin/perlin.h
191
189
  - ext/perlin/simplex.h
190
+ - ext/perlin/generator.h
191
+ - ext/perlin/classic.h
192
192
  - ext/perlin/extconf.rb
193
- - examples/chunk_in_2d.rb
194
193
  - examples/chunk_in_3d.rb
195
194
  - examples/gosu.rb
196
195
  - examples/index_in_2d.rb
197
196
  - examples/index_in_3d.rb
198
197
  - examples/ogl/README.md
199
198
  - examples/ogl/run.rb
200
- - spec/helper.rb
199
+ - examples/chunk_in_2d.rb
201
200
  - spec/perlin/generator_spec.rb
201
+ - spec/helper.rb
202
202
  homepage: https://github.com/spooner/ruby-perlin
203
203
  licenses:
204
204
  - MIT
@@ -220,10 +220,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
220
  version: '0'
221
221
  requirements: []
222
222
  rubyforge_project: ruby-perlin
223
- rubygems_version: 1.8.24
223
+ rubygems_version: 1.8.23.2
224
224
  signing_key:
225
225
  specification_version: 3
226
226
  summary: Perlin Noise C extension
227
227
  test_files:
228
- - spec/helper.rb
229
228
  - spec/perlin/generator_spec.rb
229
+ - spec/helper.rb