mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-03 16:35:50 +00:00
Simplify isDifferentiable static method impl
This commit is contained in:
parent
4393a16b2f
commit
add7803e65
@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user