7 #include <Utils/GeometryStructures.h> 8 #include <Utils/Exceptions.h> 43 glm::vec3 Right()
const;
46 geom::Plane GetNearPlane()
const;
49 geom::Plane GetFarPlane()
const;
52 geom::Plane GetTopPlane()
const;
55 geom::Plane GetBottomPlane()
const;
58 geom::Plane GetRightPlane()
const;
61 geom::Plane GetLeftPlane()
const;
64 geom::Plane GetHorizontalPlane()
const;
67 geom::Plane GetVerticalPlane()
const;
70 std::array<glm::vec3, 4> GetSliceCorners(
float slice_distance)
const;
73 std::array<glm::vec3, 4> GetNearCorners()
const;
76 std::array<glm::vec3, 4> GetFarCorners()
const;
Namespace of "Computer Graphic Structures" library, which implement many core classes and structures...
Definition: AabbHierarchy.h:8
glm::vec3 position
Frustum position.
Definition: Frustum.h:24
Definition of a 3-dimensional view frustum - a square-based 3D pyramid truncated by parallel planes...
Definition: Frustum.h:21
glm::vec3 forward
Frustum forward vector. Points inside the Frustum from its position.
Definition: Frustum.h:26
float horizontal_fov
Full horizontal field of view angle.
Definition: Frustum.h:36
float far_distance
Distance of far plane from the Frustum's position in the direction of its forward vector...
Definition: Frustum.h:33
float vertical_fov
Full vertical field of view angle.
Definition: Frustum.h:38
glm::vec3 up
Frustum up vector.
Definition: Frustum.h:28
float near_distance
Distance of near plane from the Frustum's position in the direction of its forward vector...
Definition: Frustum.h:31