mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Compression: remove unnecessary inline
This commit is contained in:
parent
1176494587
commit
79bb48bbf5
@ -26,7 +26,6 @@ public static class Compression
|
|||||||
// 'true' if scaling was possible within 'long' bounds.
|
// 'true' if scaling was possible within 'long' bounds.
|
||||||
// 'false' if clamping was necessary.
|
// 'false' if clamping was necessary.
|
||||||
// never throws. checking result is optional.
|
// never throws. checking result is optional.
|
||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
||||||
public static bool ScaleToLong(float value, float precision, out long result)
|
public static bool ScaleToLong(float value, float precision, out long result)
|
||||||
{
|
{
|
||||||
// user might try to pass precision = 0 to disable rounding.
|
// user might try to pass precision = 0 to disable rounding.
|
||||||
@ -74,7 +73,6 @@ public static bool ScaleToLong(Vector3 value, float precision, out long x, out l
|
|||||||
|
|
||||||
// multiple by precision.
|
// multiple by precision.
|
||||||
// for example, 0.1 cm precision converts '50' long to '5.0f' float.
|
// for example, 0.1 cm precision converts '50' long to '5.0f' float.
|
||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
||||||
public static float ScaleToFloat(long value, float precision)
|
public static float ScaleToFloat(long value, float precision)
|
||||||
{
|
{
|
||||||
// user might try to pass precision = 0 to disable rounding.
|
// user might try to pass precision = 0 to disable rounding.
|
||||||
|
Loading…
Reference in New Issue
Block a user