rj-action-library/Runtime/Bits/BitView_Float.cs

20 lines
350 B
C#
Raw Normal View History

2025-01-08 18:46:17 +00:00
using Godot;
using System.Collections.Generic;
using System.Text;
using System;
namespace Rokojori
{
public partial class BitView
{
public void WriteFloat( float value )
{
WriteBytes( BitConverter.GetBytes( value ) );
}
public float ReadFloat()
{
return BitConverter.ToSingle( ReadByteArray( 4 ) );
}
}
}