1 #ifndef MESH_IO_LA_H_INCLUDED
2 #define MESH_IO_LA_H_INCLUDED
9 *
\e$B@~7ABe?t
\e(B(Linear Algebra)
20 Vector2(float _x, float _y)
25 inline std::ostream &operator<<(std::ostream &os, const Vector2 &rhs)
28 << '[' << rhs.x << ',' << rhs.y << ']';
42 Vector3(float _x, float _y, float _z)
46 bool operator==(const Vector3 &rhs)const
48 return x==rhs.x && y==rhs.y && z==rhs.z;
52 inline std::ostream &operator<<(std::ostream &os, const Vector3 &rhs)
55 << '[' << rhs.x << ',' << rhs.y << ',' << rhs.z << ']';
70 Vector4(float _x, float _y, float _z, float _w)
71 : x(_x), y(_y), z(_z), w(_w)
75 inline std::ostream &operator<<(std::ostream &os, const Vector4 &rhs)
78 << '[' << rhs.x << ',' << rhs.y << ',' << rhs.z << ',' << rhs.w << ']';
93 Quaternion(float _x, float _y, float _z, float _w)
94 : x(_x), y(_y), z(_z), w(_w)
98 inline std::ostream &operator<<(std::ostream &os, const Quaternion &rhs)
101 << '[' << rhs.x << ',' << rhs.y << ',' << rhs.z << ',' << rhs.w << ']';
109 #endif // MESH_IO_LA_H_INCLUDED