Add ReadVec2 utility function

This commit is contained in:
Jarrod Doyle 2024-08-17 20:52:41 +01:00
parent 742324765f
commit b12070f982
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 5 additions and 0 deletions

View File

@ -9,4 +9,9 @@ public static class Extensions
{
return new Vector3(reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle());
}
public static Vector2 ReadVec2(this BinaryReader reader)
{
return new Vector2(reader.ReadSingle(), reader.ReadSingle());
}
}