mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-21 07:46:52 +00:00
create SubtractionSampler
This commit is contained in:
1 parent
3f0b4131be
commit
c1e6a3d7d8
1 file changed
+15
+15
@@ -0,0 +1,15 @@
|
||||
package com.dfsek.terra.addons.noise.samplers.arithmetic;
|
||||
|
||||
import com.dfsek.terra.api.noise.NoiseSampler;
|
||||
|
||||
|
||||
public class SubtractionSampler extends BinaryArithmeticSampler{
|
||||
protected SubtractionSampler(NoiseSampler left, NoiseSampler right) {
|
||||
super(left, right);
|
||||
}
|
||||
|
||||
@Override
|
||||
public double operate(double left, double right) {
|
||||
return left - right;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user