-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from hrkalona/release/1.0.9.0
Release/1.0.9.0
- Loading branch information
Showing
662 changed files
with
34,018 additions
and
12,659 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Fractal Zoomer 1.0.8.9 | ||
Fractal Zoomer 1.0.9.0 | ||
|
||
The most complete fractal generating software using java! | ||
|
||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package de.articdive.jnoise.core.api.annotations; | ||
|
||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface Vector1D { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package de.articdive.jnoise.core.api.annotations; | ||
|
||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface Vector2D { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package de.articdive.jnoise.core.api.annotations; | ||
|
||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface Vector3D { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package de.articdive.jnoise.core.api.annotations; | ||
|
||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface Vector4D { | ||
} |
106 changes: 53 additions & 53 deletions
106
src/de/articdive/jnoise/core/api/functions/Combiner.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,54 @@ | ||
package de.articdive.jnoise.core.api.functions; | ||
|
||
import de.articdive.jnoise.core.util.MathUtil; | ||
|
||
/** | ||
* Interface marking the implementing class as a function that combines to double values into 1 double value. | ||
* As an example this is used to mark the minimization function in Worley Noise. | ||
* | ||
* @author Articdive | ||
*/ | ||
@FunctionalInterface | ||
public interface Combiner { | ||
Combiner ADD = Double::sum; | ||
Combiner MULTIPLY = (a, b) -> a * b; | ||
Combiner MAX = Math::max; | ||
Combiner MIN = Math::min; | ||
Combiner POW = Math::pow; | ||
|
||
Combiner EXPONENTIAL_SMOOTH_MIN = (a, b) -> { | ||
double res = MathUtil.exp2(-32.0 * a) + MathUtil.exp2(-32.0 * b); | ||
return -MathUtil.log2(res) / 32.0; | ||
}; | ||
Combiner POWER_SMOOTH_MIN = (a, b) -> { | ||
a = Math.pow(a, 8); | ||
b = Math.pow(b, 8); | ||
return Math.pow((a * b) / (a + b), 1.0 / 8); | ||
}; | ||
Combiner POLYNOMIAL_SMOOTH_MIN = (a, b) -> { | ||
double h = Math.max(0.1 - Math.abs(a - b), 0.0) / 0.1; | ||
return Math.min(a, b) - h * h * 0.1 * (1.0 / 4.0); | ||
}; | ||
|
||
/** | ||
* Combines two double values into one double value. | ||
* | ||
* @param a first double. | ||
* @param b second double. | ||
* @return the resulting double. | ||
* @deprecated Use {@link #applyTo(double, double)} - makes more sense with conventions. | ||
*/ | ||
@Deprecated | ||
default double combine(double a, double b) { | ||
return applyTo(a, b); | ||
} | ||
|
||
/** | ||
* Combines two double values into one double value. | ||
* | ||
* @param a first double. | ||
* @param b second double. | ||
* @return the resulting double. | ||
*/ | ||
double applyTo(double a, double b); | ||
package de.articdive.jnoise.core.api.functions; | ||
|
||
import de.articdive.jnoise.core.util.MathUtil; | ||
|
||
/** | ||
* Interface marking the implementing class as a function that combines to double values into 1 double value. | ||
* As an example this is used to mark the minimization function in Worley Noise. | ||
* | ||
* @author Articdive | ||
*/ | ||
@FunctionalInterface | ||
public interface Combiner { | ||
Combiner ADD = Double::sum; | ||
Combiner MULTIPLY = (a, b) -> a * b; | ||
Combiner MAX = Math::max; | ||
Combiner MIN = Math::min; | ||
Combiner POW = Math::pow; | ||
|
||
Combiner EXPONENTIAL_SMOOTH_MIN = (a, b) -> { | ||
double res = MathUtil.exp2(-32.0 * a) + MathUtil.exp2(-32.0 * b); | ||
return -MathUtil.log2(res) / 32.0; | ||
}; | ||
Combiner POWER_SMOOTH_MIN = (a, b) -> { | ||
a = Math.pow(a, 8); | ||
b = Math.pow(b, 8); | ||
return Math.pow((a * b) / (a + b), 1.0 / 8); | ||
}; | ||
Combiner POLYNOMIAL_SMOOTH_MIN = (a, b) -> { | ||
double h = Math.max(0.1 - Math.abs(a - b), 0.0) / 0.1; | ||
return Math.min(a, b) - h * h * 0.1 * (1.0 / 4.0); | ||
}; | ||
|
||
/** | ||
* Combines two double values into one double value. | ||
* | ||
* @param a first double. | ||
* @param b second double. | ||
* @return the resulting double. | ||
* @deprecated Use {@link #applyTo(double, double)} - makes more sense with conventions. | ||
*/ | ||
@Deprecated | ||
default double combine(double a, double b) { | ||
return applyTo(a, b); | ||
} | ||
|
||
/** | ||
* Combines two double values into one double value. | ||
* | ||
* @param a first double. | ||
* @param b second double. | ||
* @return the resulting double. | ||
*/ | ||
double applyTo(double a, double b); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.