Verify Rust geometry payload interop
This commit is contained in:
parent
d8d0c4c8a0
commit
1fd8a9f226
5 changed files with 50 additions and 5 deletions
|
|
@ -411,7 +411,13 @@ namespace GameCult.Geometry
|
|||
|
||||
public static string StableVector(float[] values)
|
||||
{
|
||||
return string.Join(",", values.Select(value => value.ToString("R", CultureInfo.InvariantCulture)));
|
||||
return string.Join(",", values.Select(StableFloat));
|
||||
}
|
||||
|
||||
public static string StableFloat(float value)
|
||||
{
|
||||
return BitConverter.ToUInt32(BitConverter.GetBytes(value), 0)
|
||||
.ToString("x8", CultureInfo.InvariantCulture);
|
||||
}
|
||||
|
||||
public static string StableArray(string[] values)
|
||||
|
|
|
|||
Loading…
Reference in a new issue