KiCad PCB EDA Suite
Loading...
Searching...
No Matches
raypacket.cpp File Reference
#include "raypacket.h"
#include "../3d_fastmath.h"
#include <wx/debug.h>

Go to the source code of this file.

Functions

static void RAYPACKET_GenerateFrustum (FRUSTUM *m_Frustum, RAY *m_ray)
 
void RAYPACKET_InitRays (const CAMERA &aCamera, const SFVEC2F &aWindowsPosition, RAY *aRayPck)
 
void RAYPACKET_InitRays_with2DDisplacement (const CAMERA &aCamera, const SFVEC2F &aWindowsPosition, const SFVEC2F &a2DWindowsPosDisplacementFactor, RAY *aRayPck)
 

Function Documentation

◆ RAYPACKET_GenerateFrustum()

static void RAYPACKET_GenerateFrustum ( FRUSTUM m_Frustum,
RAY m_ray 
)
static

Definition at line 30 of file raypacket.cpp.

References FRUSTUM::GenerateFrustum(), and RAYPACKET_DIM.

Referenced by RAYPACKET::RAYPACKET().

◆ RAYPACKET_InitRays()

void RAYPACKET_InitRays ( const CAMERA aCamera,
const SFVEC2F aWindowsPosition,
RAY aRayPck 
)

Definition at line 143 of file raypacket.cpp.

References RAY::Init(), CAMERA::MakeRay(), and RAYPACKET_DIM.

Referenced by RAYPACKET::RAYPACKET().

◆ RAYPACKET_InitRays_with2DDisplacement()

void RAYPACKET_InitRays_with2DDisplacement ( const CAMERA aCamera,
const SFVEC2F aWindowsPosition,
const SFVEC2F a2DWindowsPosDisplacementFactor,
RAY aRayPck 
)