mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-20 07:10:24 +00:00
create AdditionSampler
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 AdditionSampler extends BinaryArithmeticSampler{
|
||||||
|
protected AdditionSampler(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