KiCad PCB EDA Suite
Loading...
Searching...
No Matches
raypacket.h File Reference
#include "ray.h"
#include "frustum.h"
#include <gal/3d/camera.h>

Go to the source code of this file.

Classes

struct  RAYPACKET
 

Macros

#define RAYPACKET_DIM   (1 << 3)
 
#define RAYPACKET_MASK   (unsigned int) ( ( RAYPACKET_DIM - 1 ) )
 
#define RAYPACKET_INVMASK   (unsigned int) ( ~( RAYPACKET_DIM - 1 ) )
 
#define RAYPACKET_RAYS_PER_PACKET   ( RAYPACKET_DIM * RAYPACKET_DIM )
 

Functions

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)
 

Macro Definition Documentation

◆ RAYPACKET_DIM

#define RAYPACKET_DIM   (1 << 3)

Definition at line 32 of file raypacket.h.

◆ RAYPACKET_INVMASK

#define RAYPACKET_INVMASK   (unsigned int) ( ~( RAYPACKET_DIM - 1 ) )

Definition at line 34 of file raypacket.h.

◆ RAYPACKET_MASK

#define RAYPACKET_MASK   (unsigned int) ( ( RAYPACKET_DIM - 1 ) )

Definition at line 33 of file raypacket.h.

◆ RAYPACKET_RAYS_PER_PACKET

#define RAYPACKET_RAYS_PER_PACKET   ( RAYPACKET_DIM * RAYPACKET_DIM )

Definition at line 35 of file raypacket.h.

Function Documentation

◆ 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 
)