propane 3.7.1-java → 3.8.0-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -626,8 +626,8 @@ public class PGraphics extends PImage implements PConstants {
626
626
  sinLUT = new float[SINCOS_LENGTH];
627
627
  cosLUT = new float[SINCOS_LENGTH];
628
628
  for (int i = 0; i < SINCOS_LENGTH; i++) {
629
- sinLUT[i] = (float) Math.sin(i * DEG_TO_RAD * SINCOS_PRECISION);
630
- cosLUT[i] = (float) Math.cos(i * DEG_TO_RAD * SINCOS_PRECISION);
629
+ sinLUT[i] = (float) Math.sin(Math.toRadians(i * SINCOS_PRECISION));
630
+ cosLUT[i] = (float) Math.cos(Math.toRadians(i * SINCOS_PRECISION));
631
631
  }
632
632
  }
633
633
 
@@ -17,10 +17,10 @@ class DeglutTest < Minitest::Test
17
17
  (-720..720).step(1) do |deg|
18
18
  sine = DegLut.sin(deg)
19
19
  deg_sin = Math.sin(deg * to_radian)
20
- assert_in_delta(sine, deg_sin, 0.000001)
20
+ assert_in_delta(sine, deg_sin, 0.0003)
21
21
  cosine = DegLut.cos(deg)
22
22
  deg_cos = Math.cos(deg * to_radian)
23
- assert_in_delta(cosine, deg_cos, 0.000001)
23
+ assert_in_delta(cosine, deg_cos, 0.0003)
24
24
  end
25
25
  end
26
26
  end
data/vendors/Rakefile CHANGED
@@ -11,7 +11,7 @@ PROCESSING_GITHUB = 'https://github.com/processing'
11
11
  PROPANE_EXAMPLES = 'https://github.com/ruby-processing/propane-examples'
12
12
  VIDEO = 'video.zip'
13
13
  DOWNLOAD = 'releases/download/latest'
14
- EXAMPLES = '2.9'
14
+ EXAMPLES = '3.0'
15
15
  HOME_DIR = ENV['HOME']
16
16
  LIBRARY = File.join(HOME_DIR, '.propane', 'libraries')
17
17
  MAC_OR_LINUX = /linux|mac|darwin/.match?(RbConfig::CONFIG['host_os'])
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: propane
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.1
4
+ version: 3.8.0
5
5
  platform: java
6
6
  authors:
7
7
  - monkstone
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-24 00:00:00.000000000 Z
11
+ date: 2021-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -111,7 +111,7 @@ files:
111
111
  - lib/jogl-all-natives-macosx-universal.jar
112
112
  - lib/jogl-all-natives-windows-amd64.jar
113
113
  - lib/jogl-all.jar
114
- - lib/propane-3.7.1.jar
114
+ - lib/propane-3.8.0.jar
115
115
  - lib/propane.rb
116
116
  - lib/propane/app.rb
117
117
  - lib/propane/creators/sketch_class.rb
@@ -135,7 +135,6 @@ files:
135
135
  - library/library_proxy/README.md
136
136
  - library/library_proxy/library_proxy.rb
137
137
  - library/net/net.rb
138
- - library/simplex_noise/simplex_noise.rb
139
138
  - library/slider/slider.rb
140
139
  - library/vector_utils/vector_utils.rb
141
140
  - library/video_event/video_event.rb
@@ -151,10 +150,15 @@ files:
151
150
  - src/main/java/monkstone/MathToolModule.java
152
151
  - src/main/java/monkstone/PropaneLibrary.java
153
152
  - src/main/java/monkstone/core/LibraryProxy.java
153
+ - src/main/java/monkstone/fastmath/DegLutTables.java
154
154
  - src/main/java/monkstone/fastmath/Deglut.java
155
155
  - src/main/java/monkstone/fastmath/package-info.java
156
156
  - src/main/java/monkstone/filechooser/Chooser.java
157
+ - src/main/java/monkstone/noise/Noise.java
158
+ - src/main/java/monkstone/noise/NoiseGenerator.java
159
+ - src/main/java/monkstone/noise/NoiseMode.java
157
160
  - src/main/java/monkstone/noise/SimplexNoise.java
161
+ - src/main/java/monkstone/noise/ValueNoise.java
158
162
  - src/main/java/monkstone/slider/CustomHorizontalSlider.java
159
163
  - src/main/java/monkstone/slider/CustomVerticalSlider.java
160
164
  - src/main/java/monkstone/slider/SimpleHorizontalSlider.java
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class Propane::App
4
- SimplexNoise = Java::MonkstoneNoise::SimplexNoise
5
- end