예제 #1
0
 /// <summary>
 /// Expands this <see cref="Half2"/> structure to a <see cref="Vector2"/>.
 /// </summary>
 public Vector2 ToVector2()
 {
     return(new Vector2(
                HalfUtils.ConvertHalfToFloat((ushort)PackedValue),
                HalfUtils.ConvertHalfToFloat((ushort)(PackedValue >> 16))
                ));
 }
예제 #2
0
 /// <summary>
 /// Expands the packed value to a <see cref="float"/>.
 /// </summary>
 public float ToSingle() => HalfUtils.ConvertHalfToFloat(PackedValue);