LEFT | RIGHT |
| 1 /* |
| 2 * ***** BEGIN GPL LICENSE BLOCK ***** |
| 3 * |
| 4 * This program is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU General Public License |
| 6 * as published by the Free Software Foundation; either version 2 |
| 7 * of the License, or (at your option) any later version. |
| 8 * |
| 9 * This program is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 * GNU General Public License for more details. |
| 13 * |
| 14 * You should have received a copy of the GNU General Public License |
| 15 * along with this program; if not, write to the Free Software Foundation, |
| 16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 17 * |
| 18 * Contributor(s): Tao Ju |
| 19 * |
| 20 * ***** END GPL LICENSE BLOCK ***** |
| 21 */ |
| 22 |
1 #ifndef PROJECTIONS_H | 23 #ifndef PROJECTIONS_H |
2 #define PROJECTIONS_H | 24 #define PROJECTIONS_H |
3 | 25 |
4 #include <stdio.h> | 26 #include <stdio.h> |
5 #include <stdlib.h> | 27 #include <stdlib.h> |
6 | 28 |
7 #define CONTAINS_INDEX | 29 #define CONTAINS_INDEX |
8 #define GRID_DIMENSION 20 | 30 #define GRID_DIMENSION 20 |
9 | 31 |
| 32 #if defined(_WIN32) && !defined(FREE_WINDOWS) |
| 33 #define LONG __int64 |
| 34 #else |
10 #define LONG int64_t | 35 #define LONG int64_t |
| 36 #endif |
11 #define UCHAR unsigned char | 37 #define UCHAR unsigned char |
12 | 38 |
13 /** | 39 /** |
14 * Structures and classes for computing projections of triangles | 40 * Structures and classes for computing projections of triangles |
15 * onto separating axes during scan conversion | 41 * onto separating axes during scan conversion |
16 * | 42 * |
17 * @author Tao Ju | 43 * @author Tao Ju |
18 */ | 44 */ |
19 | 45 |
20 | 46 |
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
809 mag = sqrt( mag ) ; | 835 mag = sqrt( mag ) ; |
810 a[0] /= mag ; | 836 a[0] /= mag ; |
811 a[1] /= mag ; | 837 a[1] /= mag ; |
812 a[2] /= mag ; | 838 a[2] /= mag ; |
813 } | 839 } |
814 } | 840 } |
815 | 841 |
816 }; | 842 }; |
817 | 843 |
818 #endif | 844 #endif |
LEFT | RIGHT |