/// <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)) )); }
/// <summary> /// Expands the packed value to a <see cref="float"/>. /// </summary> public float ToSingle() => HalfUtils.ConvertHalfToFloat(PackedValue);