Enum NearestMode
Options for how to sample the nearest element in Resize
when using InterpolationMode.NearestMode
.
Namespace: Unity.Sentis.Layers
Assembly: Unity.Sentis.dll
Syntax
public enum NearestMode
Fields
Name | Description |
---|---|
Ceil | Use rounding up to the next integer coordinate greater than or equal to the input coordinate. |
Floor | Use rounding down to the next integer coordinate less than or equal to the input coordinate. |
RoundPreferCeil | Use rounding to the nearest integer coordinate. If the fractional part equals 0.5 then round up. |
RoundPreferFloor | Use rounding to the nearest integer coordinate. If the fractional part equals 0.5 then round down. |