Пример #1
0
 public static float SafeSample(this BaseScalarField field, Vector2 position)
 {
     return(field == null ? 0 : field.Sample(position));
 }
Пример #2
0
 public override float Sample(Vector2 position)
 {
     return(_baseField.Sample(position) * _scale);
 }