mirror of
https://github.com/AxioDL/LibCommon.git
synced 2026-03-30 11:47:23 -07:00
00f3bef71a
Makes data type handling more explicit and less verbose (e.g. with WriteLongLong -> WriteS64)
17 lines
312 B
C++
17 lines
312 B
C++
#include "CVector2f.h"
|
|
|
|
#include <Common/FileIO/IInputStream.h>
|
|
#include <Common/FileIO/IOutputStream.h>
|
|
|
|
CVector2f::CVector2f(IInputStream& rInput)
|
|
{
|
|
X = rInput.ReadF32();
|
|
Y = rInput.ReadF32();
|
|
}
|
|
|
|
void CVector2f::Write(IOutputStream& rOutput) const
|
|
{
|
|
rOutput.WriteF32(X);
|
|
rOutput.WriteF32(Y);
|
|
}
|