using System.IO;
using FFXIVClientStructs.FFXIV.Common.Math;

namespace HaselTweaks.Extensions;

public static class BinaryReaderExtensions
{
    public static HalfVector2 ReadHalfVector2(this BinaryReader reader) => new()
    {
        X = reader.ReadHalf(),
        Y = reader.ReadHalf()
    };

    public static HalfVector4 ReadHalfVector4(this BinaryReader reader) => new()
    {
        X = reader.ReadHalf(),
        Y = reader.ReadHalf(),
        Z = reader.ReadHalf(),
        W = reader.ReadHalf()
    };
}
