Add ReadVec2 utility function
This commit is contained in:
parent
742324765f
commit
b12070f982
|
@ -9,4 +9,9 @@ public static class Extensions
|
||||||
{
|
{
|
||||||
return new Vector3(reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle());
|
return new Vector3(reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Vector2 ReadVec2(this BinaryReader reader)
|
||||||
|
{
|
||||||
|
return new Vector2(reader.ReadSingle(), reader.ReadSingle());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue