C# Class Fusion.Core.Mathematics.HalfUtils

Helper class to perform Half/Float conversion. Code extract from paper : www.fox-toolkit.org/ftp/fasthalffloatconversion.pdf by Jeroen van der Zijp
Exibir arquivo Open project: demiurghg/FusionEngine Class Usage Examples

Public Methods

Method Description
Pack ( float f ) : ushort

Packs the specified f.

Unpack ( ushort h ) : float

Unpacks the specified h.

Private Methods

Method Description
HalfUtils ( ) : System.Runtime.InteropServices

Method Details

Pack() public static method

Packs the specified f.
public static Pack ( float f ) : ushort
f float The f.
return ushort

Unpack() public static method

Unpacks the specified h.
public static Unpack ( ushort h ) : float
h ushort The h.
return float