mirror of
				https://github.com/sampletext32/ParkanPlayground.git
				synced 2025-11-04 07:19:45 +03:00 
			
		
		
		
	msh and cp converters. Mesh broken.
This commit is contained in:
		
							
								
								
									
										11
									
								
								Common/IntFloatValue.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Common/IntFloatValue.cs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
using System.Diagnostics;
 | 
			
		||||
using System.Runtime.InteropServices;
 | 
			
		||||
 | 
			
		||||
namespace Common;
 | 
			
		||||
 | 
			
		||||
[DebuggerDisplay("AsInt = {AsInt}, AsFloat = {AsFloat}")]
 | 
			
		||||
public class IntFloatValue(Span<byte> span)
 | 
			
		||||
{
 | 
			
		||||
    public int AsInt { get; set; } = MemoryMarshal.Read<int>(span);
 | 
			
		||||
    public float AsFloat { get; set; } = MemoryMarshal.Read<float>(span);
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user