mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-18 23:01:03 +00:00
Simplify isDifferentiable static method impl
This commit is contained in:
@@ -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