@@ -23,7 +23,7 @@ namespace Forth
23
23
24
24
Vector4 ex, ey, ez, ew;
25
25
26
- Matrix4 () { ex = Vector4 (); ey = Vector4 (); ez = Vector4 (); ew = Vector4 (); }
26
+ Matrix4 (void ) { ex = Vector4 (); ey = Vector4 (); ez = Vector4 (); ew = Vector4 (); }
27
27
28
28
Matrix4 (const Vector4& _diag)
29
29
{
@@ -39,12 +39,12 @@ namespace Forth
39
39
Matrix4 (float a, float b, float c, float d, float e, float f, float g, float h, float i, float j, float k, float l, float m, float n, float o, float p)
40
40
: ex(a, b, c, d), ey(e,f,g,h), ez(i,j,k,l), ew(m,n,o,p) { }
41
41
42
- Vector4& operator [](int i)
42
+ inline Vector4& operator [](int i)
43
43
{
44
44
return (&ex)[i];
45
45
}
46
46
47
- Vector4 operator [](int i) const
47
+ inline Vector4 operator [](int i) const
48
48
{
49
49
return (&ex)[i];
50
50
}
@@ -54,12 +54,12 @@ namespace Forth
54
54
return Vector4 (ex[i], ey[i], ez[i], ew[i]);
55
55
}
56
56
57
- const Vector4 Column0 () const
57
+ const Vector4 Column0 (void ) const
58
58
{
59
59
return Vector4 (ex.x , ey.x , ez.x , ew.x );
60
60
}
61
61
62
- const Vector4 Column1 () const
62
+ const Vector4 Column1 (void ) const
63
63
{
64
64
return Vector4 (ex.y , ey.y , ez.y , ew.y );
65
65
}
@@ -154,7 +154,7 @@ namespace Forth
154
154
// / <summary>
155
155
// / Get a 4x4 identity matrix
156
156
// / </summary>
157
- static Matrix4 identity ()
157
+ static Matrix4 identity (void )
158
158
{
159
159
Matrix4 m = Matrix4 ();
160
160
m.ex .x = m.ey .y = m.ez .z = m.ew .w = 1 ;
@@ -163,7 +163,7 @@ namespace Forth
163
163
164
164
private:
165
165
166
- void Transpose ()
166
+ void Transpose (void )
167
167
{
168
168
float tmp;
169
169
SWAP (ex.y , ey.x , tmp);
0 commit comments