Minor formating fixes.
This commit is contained in:
parent
6f53b0c069
commit
4df668e68f
76 changed files with 121 additions and 121 deletions
|
|
@ -6,7 +6,7 @@
|
|||
#include "Vector2.h"
|
||||
#include "Matrix4.h"
|
||||
|
||||
namespace sp { namespace math
|
||||
namespace sp { namespace math
|
||||
{
|
||||
float rand(float min, float max);
|
||||
|
||||
|
|
@ -50,4 +50,4 @@ namespace sp { namespace math
|
|||
|
||||
} } // namespace sp
|
||||
|
||||
#endif /* SPECTRE_MATH_MATH_H */
|
||||
#endif /* SPECTRE_MATH_MATH_H */
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ struct Matrix3
|
|||
| 0 3 6 |
|
||||
| 1 4 7 |
|
||||
| 2 5 8 |
|
||||
|_ _|
|
||||
|_ _|
|
||||
*/
|
||||
T v[9];
|
||||
};
|
||||
|
|
@ -32,8 +32,8 @@ struct Matrix3
|
|||
|
||||
inline Matrix3();
|
||||
|
||||
inline Matrix3( T a, T b, T c,
|
||||
T d, T e, T f,
|
||||
inline Matrix3( T a, T b, T c,
|
||||
T d, T e, T f,
|
||||
T g, T h, T i);
|
||||
|
||||
inline Matrix3(T *a);
|
||||
|
|
@ -83,4 +83,4 @@ typedef Matrix3<unsigned> Matrix3u;
|
|||
|
||||
#include "Matrix3.inl"
|
||||
|
||||
#endif /* SPECTRE_MATH_MATRIX3_H */
|
||||
#endif /* SPECTRE_MATH_MATRIX3_H */
|
||||
|
|
|
|||
|
|
@ -108,9 +108,9 @@ Matrix3<T> Matrix3<T>::transpose() const
|
|||
{
|
||||
Matrix3<T> t;
|
||||
|
||||
t.v[0] = v[0]; t.v[3] = v[1]; t.v[6] = v[2];
|
||||
t.v[1] = v[3]; t.v[4] = v[4]; t.v[7] = v[5];
|
||||
t.v[2] = v[6]; t.v[5] = v[7]; t.v[8] = v[8];
|
||||
t.v[0] = v[0]; t.v[3] = v[1]; t.v[6] = v[2];
|
||||
t.v[1] = v[3]; t.v[4] = v[4]; t.v[7] = v[5];
|
||||
t.v[2] = v[6]; t.v[5] = v[7]; t.v[8] = v[8];
|
||||
|
||||
return t;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -109,4 +109,4 @@ typedef Matrix4<unsigned> mat4u;
|
|||
// ----------------
|
||||
#include "Matrix4.inl"
|
||||
|
||||
#endif /* SPECTRE_MATH_MATRIX4_H */
|
||||
#endif /* SPECTRE_MATH_MATRIX4_H */
|
||||
|
|
|
|||
|
|
@ -155,4 +155,4 @@ inline std::ostream& operator<<(std::ostream &s, const Matrix4<T>& mat)
|
|||
return s << mat.toString();
|
||||
}
|
||||
|
||||
} // namespace sp
|
||||
} // namespace sp
|
||||
|
|
|
|||
|
|
@ -79,4 +79,4 @@ Vector2f operator*(const Transform& t, const Vector2f& v);
|
|||
|
||||
} // namespace sp
|
||||
|
||||
#endif /* SPECTRE_MATH_TRANSFORM_H */
|
||||
#endif /* SPECTRE_MATH_TRANSFORM_H */
|
||||
|
|
|
|||
|
|
@ -317,4 +317,4 @@ inline std::ostream& operator<<(std::ostream &s, const Vector2<T>& v)
|
|||
return s << "(" << v.x << "," << v.y << ")";
|
||||
}
|
||||
|
||||
} // namespace sp
|
||||
} // namespace sp
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ template <typename T>
|
|||
struct Vector3
|
||||
{
|
||||
union {
|
||||
struct {
|
||||
struct {
|
||||
T x, y, z;
|
||||
};
|
||||
T v[3];
|
||||
|
|
|
|||
|
|
@ -268,4 +268,4 @@ inline std::ostream& operator<<(std::ostream &s, const Vector3<T>& v)
|
|||
return s << "(" << v.x << "," << v.y << "," << v.z << ")";
|
||||
}
|
||||
|
||||
} // namespace sp
|
||||
} // namespace sp
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ template <typename T>
|
|||
struct Vector4
|
||||
{
|
||||
union {
|
||||
struct {
|
||||
struct {
|
||||
T x, y, z, w;
|
||||
};
|
||||
T v[4];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue