Unravel Engine C++ Reference
Loading...
Searching...
No Matches
math_types.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <type_traits>
4
namespace
math
5
{
6
7
//-----------------------------------------------------------------------------
8
// Common Global Enumerations
9
//-----------------------------------------------------------------------------
10
// Resulting classifications for volume queries such as AABB vs. Frustum, etc.
11
12
enum class
volume_query
13
{
14
inside
= 0,
15
outside
,
16
intersect
17
};
18
19
enum class
plane_query
20
{
21
front
= 0,
22
back
,
23
on
,
24
spanning
25
};
26
27
// Used to identify specific planes of volumes such as the sides of an AABB or
28
// Frustum
29
namespace
volume_plane
30
{
31
enum
e
32
{
33
left
= 0,
34
right
,
35
top
,
36
bottom
,
37
near_plane
,
38
far_plane
,
39
};
40
}
// namespace volume_plane
41
42
// Used to identify specific volume boundary points such as the 8 points of an
43
// AABB or Frustum
44
namespace
volume_geometry_point
45
{
46
enum
e
47
{
48
right_bottom_far
= 0,
49
right_bottom_near
,
50
right_top_far
,
51
right_top_near
,
52
left_bottom_far
,
53
left_bottom_near
,
54
left_top_far
,
55
left_top_near
56
};
57
}
// namespace volume_geometry_point
58
}
// namespace math
math::volume_geometry_point::e
e
Definition
math_types.h:47
math::volume_geometry_point::left_bottom_far
@ left_bottom_far
Definition
math_types.h:52
math::volume_geometry_point::right_top_near
@ right_top_near
Definition
math_types.h:51
math::volume_geometry_point::left_top_near
@ left_top_near
Definition
math_types.h:55
math::volume_geometry_point::left_bottom_near
@ left_bottom_near
Definition
math_types.h:53
math::volume_geometry_point::left_top_far
@ left_top_far
Definition
math_types.h:54
math::volume_geometry_point::right_bottom_near
@ right_bottom_near
Definition
math_types.h:49
math::volume_geometry_point::right_top_far
@ right_top_far
Definition
math_types.h:50
math::volume_geometry_point::right_bottom_far
@ right_bottom_far
Definition
math_types.h:48
math::volume_plane::e
e
Definition
math_types.h:32
math::volume_plane::far_plane
@ far_plane
Definition
math_types.h:38
math::volume_plane::near_plane
@ near_plane
Definition
math_types.h:37
math::volume_plane::top
@ top
Definition
math_types.h:35
math::volume_plane::left
@ left
Definition
math_types.h:33
math::volume_plane::right
@ right
Definition
math_types.h:34
math::volume_plane::bottom
@ bottom
Definition
math_types.h:36
math
Definition
bbox.cpp:5
math::plane_query
plane_query
Definition
math_types.h:20
math::plane_query::back
@ back
math::plane_query::spanning
@ spanning
math::plane_query::front
@ front
math::plane_query::on
@ on
math::volume_query
volume_query
Definition
math_types.h:13
math::volume_query::inside
@ inside
math::volume_query::outside
@ outside
math::volume_query::intersect
@ intersect
UnravelEngine
UnravelEngine
engine
core
math
math_types.h
Generated by
1.12.0