Assets/Deps/emotitron/Network/Compression/AxisRange.cs
/// <summary>
/// Determine the fewest bits required to communicate the largest value expected.
/// </summary>
Determine the fewest bits required to communicate the largest value expected.
Determine the fewest bits required to communicate the largest value expected .
public static int GetBitsForRangeAndRez(float min, float max, float rez)
		{
			if (rez == 0f)
			{
				Debug.Log("Resolution of 0 on object will result in a division by zero.");
				return 0;
			}
			return GetBitsForMaxValue((uint)Mathf.Ceil((max - min) / rez));
		}
public static int GetBitsForRangeAndRez ( float min , float max , float rez ) { if ( rez == 0f ) { Debug . Log ( " " ) ; return 0 ; } return GetBitsForMaxValue ( ( uint ) Mathf . Ceil ( ( max - min ) / rez ) ) ; }
Determine the fewest bits required to communicate the largest value expected.
Determine the fewest bits required to communicate the largest value expected .
min
float
max
float
rez
float