Changeset 235
 Timestamp:
 Jan 19, 2011, 9:32:50 PM (11 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/src/matrix.h
r232 r235 21 21 Vector2() { x = y = 0; } 22 22 Vector2(T _x, T _y) { x = _x; y = _y; } 23 T& operator[](int n) { return *(&x + n); } 23 24 24 25 union { T x; T a; T i; }; … … 33 34 Vector3() { x = y = z = 0; } 34 35 Vector3(T _x, T _y, T _z) { x = _x; y = _y; z = _z; } 36 T& operator[](int n) { return *(&x + n); } 35 37 36 38 union { T x; T a; T i; };
Note: See TracChangeset
for help on using the changeset viewer.