Overload  1.1
Game engine with editor
Public Member Functions | List of all members
OvRendering::Data::Frustum Class Reference

#include <Frustum.h>

Public Member Functions

void CalculateFrustum (const OvMaths::FMatrix4 &p_viewProjection)
 
bool PointInFrustum (float p_x, float p_y, float p_z) const
 
bool SphereInFrustum (float p_x, float p_y, float p_z, float p_radius) const
 
bool CubeInFrustum (float p_x, float p_y, float p_z, float p_size) const
 
bool BoundingSphereInFrustum (const OvRendering::Geometry::BoundingSphere &p_boundingSphere, const OvMaths::FTransform &p_transform) const
 
std::array< float, 4 > GetNearPlane () const
 
std::array< float, 4 > GetFarPlane () const
 

Detailed Description

Mathematic representation of a 3D frustum

Member Function Documentation

◆ BoundingSphereInFrustum()

bool OvRendering::Data::Frustum::BoundingSphereInFrustum ( const OvRendering::Geometry::BoundingSphere p_boundingSphere,
const OvMaths::FTransform p_transform 
) const

Returns true if the given bouding sphere is in frustum

Parameters
p_boundingSphere
p_transform

◆ CalculateFrustum()

void OvRendering::Data::Frustum::CalculateFrustum ( const OvMaths::FMatrix4 p_viewProjection)

Update frustum values

Parameters
p_viewProjection

◆ CubeInFrustum()

bool OvRendering::Data::Frustum::CubeInFrustum ( float  p_x,
float  p_y,
float  p_z,
float  p_size 
) const

Returns true if the given cube is in frustum

Parameters
p_x
p_y
p_z
p_size

◆ GetFarPlane()

std::array< float, 4 > OvRendering::Data::Frustum::GetFarPlane ( ) const

Returns the far plane

◆ GetNearPlane()

std::array< float, 4 > OvRendering::Data::Frustum::GetNearPlane ( ) const

Returns the near plane

◆ PointInFrustum()

bool OvRendering::Data::Frustum::PointInFrustum ( float  p_x,
float  p_y,
float  p_z 
) const

Returns true if the given point is in frustum

Parameters
p_x
p_y
p_z

◆ SphereInFrustum()

bool OvRendering::Data::Frustum::SphereInFrustum ( float  p_x,
float  p_y,
float  p_z,
float  p_radius 
) const

Returns true if the given sphere is in frustum

Parameters
p_x
p_y
p_z
p_radius

The documentation for this class was generated from the following files: