mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-02-16 10:30:42 +00:00
create SubtractionSampler
This commit is contained in:
@@ -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