mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-27 14:30:23 +00:00
Simplify isDifferentiable static method impl
This commit is contained in:
1 parent
4393a16b2f
commit
add7803e65
1 file changed
+1
-4
@@ -6,10 +6,7 @@ package com.dfsek.terra.api.noise;
|
|||||||
public interface DerivativeNoiseSampler extends NoiseSampler {
|
public interface DerivativeNoiseSampler extends NoiseSampler {
|
||||||
|
|
||||||
static boolean isDifferentiable(NoiseSampler sampler) {
|
static boolean isDifferentiable(NoiseSampler sampler) {
|
||||||
if(sampler instanceof DerivativeNoiseSampler dSampler) {
|
return sampler instanceof DerivativeNoiseSampler dSampler && dSampler.isDifferentiable();
|
||||||
return dSampler.isDifferentiable();
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user