reworked mesh decimation yes
This commit is contained in:
26
LightlessSync/ThirdParty/Nanomesh/Base/TextUtils.cs
vendored
Normal file
26
LightlessSync/ThirdParty/Nanomesh/Base/TextUtils.cs
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
using System.Globalization;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Nanomesh
|
||||
{
|
||||
public static class TextUtils
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static double ToDouble(this string text)
|
||||
{
|
||||
return double.Parse(text, CultureInfo.InvariantCulture);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static float ToFloat(this string text)
|
||||
{
|
||||
return float.Parse(text, CultureInfo.InvariantCulture);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static int ToInt(this string text)
|
||||
{
|
||||
return int.Parse(text, CultureInfo.InvariantCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user