Aeon Engine c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
Plane.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_PLANE_H
18#define AEONGAMES_PLANE_H
24
26#include "aeongames/Vector3.hpp"
27
28namespace AeonGames
29{
30 class AABB;
32 class Plane
33 {
34 public:
36 DLL Plane ();
43 DLL Plane ( float aNormalX, float aNormalY, float aNormalZ, float aDistance );
45 DLL ~Plane();
49 DLL const Vector3& GetNormal() const;
53 DLL const float& GetDistance() const;
54 private:
55 Vector3 mNormal;
56 float mDistance{};
57 };
58}
59#endif
Platform-specific macros, includes, and DLL export/import definitions.
Header for the 3D vector class.
Axis Aligned Bounding Box class.
Definition AABB.hpp:34
DLL const float & GetDistance() const
Get the distance from the origin to the plane.
Definition Plane.cpp:45
DLL const Vector3 & GetNormal() const
Get the plane normal vector.
Definition Plane.cpp:40
DLL ~Plane()
destructor.
DLL Plane()
Default constructor.
3D vector class.
Definition Vector3.hpp:32
<- This is here just for the literals
Definition AABB.hpp:31