KiCad PCB EDA Suite
Loading...
Searching...
No Matches
FRUSTUM Struct Reference

#include <frustum.h>

Public Member Functions

void GenerateFrustum (const RAY &topLeft, const RAY &topRight, const RAY &bottomLeft, const RAY &bottomRight)
 
bool Intersect (const BBOX_3D &aBBox) const
 Intersect aBBox with this frustum.
 

Private Attributes

SFVEC3F m_normals [4]
 
SFVEC3F m_point [4]
 

Detailed Description

Definition at line 41 of file frustum.h.

Member Function Documentation

◆ GenerateFrustum()

void FRUSTUM::GenerateFrustum ( const RAY topLeft,
const RAY topRight,
const RAY bottomLeft,
const RAY bottomRight 
)

Definition at line 37 of file frustum.cpp.

References RAY::m_Dir, m_normals, RAY::m_Origin, and m_point.

Referenced by RAYPACKET_GenerateFrustum().

◆ Intersect()

bool FRUSTUM::Intersect ( const BBOX_3D aBBox) const

Intersect aBBox with this frustum.

Parameters
aBBoxis a bounding box to test.
Returns
true if the bounding box intersects this frustum.

Definition at line 58 of file frustum.cpp.

References m_normals, m_point, BBOX_3D::Max(), and BBOX_3D::Min().

Referenced by getFirstHit(), and BVH_PBRT::Intersect().

Member Data Documentation

◆ m_normals

SFVEC3F FRUSTUM::m_normals[4]
private

Definition at line 56 of file frustum.h.

Referenced by GenerateFrustum(), and Intersect().

◆ m_point

SFVEC3F FRUSTUM::m_point[4]
private

Definition at line 57 of file frustum.h.

Referenced by GenerateFrustum(), and Intersect().


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