Add some static athena readers

This commit is contained in:
Jack Andersen 2017-01-21 15:36:46 -10:00
parent caff50dfa5
commit a7545579cc
2 changed files with 14 additions and 0 deletions

View File

@ -90,6 +90,13 @@ public:
m[1][2] = input.readFloatBig(); m[1][2] = input.readFloatBig();
m[2][2] = input.readFloatBig(); m[2][2] = input.readFloatBig();
} }
static CMatrix3f ReadBig(athena::io::IStreamReader& input)
{
CMatrix3f ret;
ret.readBig(input);
return ret;
}
#endif #endif
CMatrix3f(const CVector3f& axis, float angle); CMatrix3f(const CVector3f& axis, float angle);
CMatrix3f(const CQuaternion& quat); CMatrix3f(const CQuaternion& quat);

View File

@ -80,6 +80,13 @@ public:
v[2] = 0.0f; v[2] = 0.0f;
v[3] = 0.0f; v[3] = 0.0f;
} }
static CVector2f ReadBig(athena::io::IStreamReader& input)
{
CVector2f ret;
ret.readBig(input);
return ret;
}
#endif #endif
CVector2f(float xy) { splat(xy); } CVector2f(float xy) { splat(xy); }