Aeon Engine c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
Frustum.hpp
Go to the documentation of this file.
1/*
2Copyright (C) 2017-2019,2025,2026 Rodrigo Jose Hernandez Cordoba
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17#ifndef AEONGAMES_FRUSTUM_H
18#define AEONGAMES_FRUSTUM_H
24#include <array>
26#include "aeongames/Plane.hpp"
27
28namespace AeonGames
29{
30 class AABB;
31 class Matrix4x4;
32 class Vector3;
34 class Frustum
35 {
36 public:
38 DLL Frustum();
41 DLL Frustum ( const Matrix4x4& aMatrix );
43 DLL ~Frustum();
47 DLL bool Intersects ( const AABB& aAABB ) const;
48 private:
50 std::array<Plane, 6> mPlanes;
51 };
52}
53#endif
Header for the plane class.
Platform-specific macros, includes, and DLL export/import definitions.
Axis Aligned Bounding Box class.
Definition AABB.hpp:34
DLL Frustum()
Default constructor.
DLL bool Intersects(const AABB &aAABB) const
Tests whether an axis-aligned bounding box intersects or is inside the frustum.
Definition Frustum.cpp:84
DLL ~Frustum()
destructor.
4 by 4 matrix in colum mayor order.
Definition Matrix4x4.hpp:35
3D vector class.
Definition Vector3.hpp:32
<- This is here just for the literals
Definition AABB.hpp:31