Oolite 1.91.0.7644-241112-7f5034b
Loading...
Searching...
No Matches
OOVoxel.h
Go to the documentation of this file.
1/*
2
3OOVoxel.h
4
5Mathematical framework for Oolite.
6
7Primitive functions used for octree intersection tests.
8
9Oolite
10Copyright (C) 2004-2013 Giles C Williams and contributors
11
12This program is free software; you can redistribute it and/or
13modify it under the terms of the GNU General Public License
14as published by the Free Software Foundation; either version 2
15of the License, or (at your option) any later version.
16
17This program is distributed in the hope that it will be useful,
18but WITHOUT ANY WARRANTY; without even the implied warranty of
19MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20GNU General Public License for more details.
21
22You should have received a copy of the GNU General Public License
23along with this program; if not, write to the Free Software
24Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
25MA 02110-1301, USA.
26
27*/
28
29
30#ifndef INCLUDED_OOMATHS_h
31 #error Do not include OOVoxel.h directly; include OOMaths.h.
32#else
33
34
35#define CUBE_FACE_RIGHT 0x01
36#define CUBE_FACE_LEFT 0x02
37#define CUBE_FACE_TOP 0x04
38#define CUBE_FACE_BOTTOM 0x08
39#define CUBE_FACE_FRONT 0x10
40#define CUBE_FACE_BACK 0x20
41
42
43Vector lineIntersectionWithFace(Vector p1, Vector p2, long mask, GLfloat rd) CONST_FUNC;
44int lineCubeIntersection(Vector v0, Vector v1, GLfloat rd) CONST_FUNC;
45
46
47#endif
#define CONST_FUNC
Vector lineIntersectionWithFace(Vector p1, Vector p2, long mask, GLfloat rd)
Definition OOVoxel.m:77
int lineCubeIntersection(Vector v0, Vector v1, GLfloat rd)
Definition OOVoxel.m:140