radiusByLayer method
Returns the corresponding renderedRadius_
field
by 📚 SurfaceLayer switch
.
A 📚 Layer
that is not within filteredLayers will render no filter.
Implementation
double radiusByLayer(SurfaceLayer layer) {
switch (layer) {
case SurfaceLayer.BASE:
return renderedRadiusBase;
case SurfaceLayer.MATERIAL:
return renderedRadiusMaterial;
case SurfaceLayer.CHILD:
return renderedRadiusChild;
}
}