source: trunk/src/matrix.h @ 152

Last change on this file since 152 was 152, checked in by sam, 11 years ago

Proper Float3 constructors.

  • Property svn:keywords set to Id
File size: 482 bytes
Line 
1//
2// Deus Hax (working title)
3// Copyright (c) 2010 Sam Hocevar <sam@hocevar.net>
4//
5
6//
7// The Matrix classes
8// ------------------
9//
10
11#if !defined __DH_MATRIX_H__
12#define __DH_MATRIX_H__
13
14struct Float2
15{
16    Float2() { x = y = 0.0f; }
17    Float2(float _x, float _y) { x = _x; y = _y; }
18
19    float x, y;
20};
21
22struct Float3
23{
24    Float3() { x = y = z = 0.0f; }
25    Float3(float _x, float _y, float _z) { x = _x; y = _y; z = _z; }
26
27    float x, y, z;
28};
29
30#endif // __DH_MATRIX_H__
31
Note: See TracBrowser for help on using the repository browser.