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

#include <ray.h>

Public Member Functions

void Init (const SFVEC3F &o, const SFVEC3F &d)
 
bool IntersectSphere (const SFVEC3F &aCenter, float aRadius, float &aOutT0, float &aOutT1) const
 
SFVEC3F at (float t) const
 
SFVEC2F at2D (float t) const
 

Public Attributes

SFVEC3F m_Origin
 
unsigned int rayID
 unique ray ID - not used - dummy More...
 
SFVEC3F m_Dir
 
RAY_CLASSIFICATION m_Classification
 
SFVEC3F m_InvDir
 
float ibyj
 
float jbyi
 
float kbyj
 
float jbyk
 
float ibyk
 
float kbyi
 
float c_xy
 
float c_xz
 
float c_yx
 
float c_yz
 
float c_zx
 
float c_zy
 
unsigned int m_dirIsNeg [3]
 

Detailed Description

Definition at line 62 of file ray.h.

Member Function Documentation

◆ at()

◆ at2D()

SFVEC2F RAY::at2D ( float  t) const
inline

Definition at line 86 of file ray.h.

References m_Dir, and m_Origin.

◆ Init()

◆ IntersectSphere()

bool RAY::IntersectSphere ( const SFVEC3F aCenter,
float  aRadius,
float &  aOutT0,
float &  aOutT1 
) const
Todo:
: not tested

Definition at line 211 of file ray.cpp.

References m_Dir, and m_Origin.

Member Data Documentation

◆ c_xy

float RAY::c_xy

Definition at line 73 of file ray.h.

Referenced by Init(), and BBOX_3D::Intersect().

◆ c_xz

float RAY::c_xz

Definition at line 73 of file ray.h.

Referenced by Init(), and BBOX_3D::Intersect().

◆ c_yx

float RAY::c_yx

Definition at line 73 of file ray.h.

Referenced by Init(), and BBOX_3D::Intersect().

◆ c_yz

float RAY::c_yz

Definition at line 73 of file ray.h.

Referenced by Init(), and BBOX_3D::Intersect().

◆ c_zx

float RAY::c_zx

Definition at line 73 of file ray.h.

Referenced by Init(), and BBOX_3D::Intersect().

◆ c_zy

float RAY::c_zy

Definition at line 73 of file ray.h.

Referenced by Init(), and BBOX_3D::Intersect().

◆ ibyj

float RAY::ibyj

Definition at line 72 of file ray.h.

Referenced by Init(), and BBOX_3D::Intersect().

◆ ibyk

float RAY::ibyk

Definition at line 72 of file ray.h.

Referenced by Init(), and BBOX_3D::Intersect().

◆ jbyi

float RAY::jbyi

Definition at line 72 of file ray.h.

Referenced by Init(), and BBOX_3D::Intersect().

◆ jbyk

float RAY::jbyk

Definition at line 72 of file ray.h.

Referenced by Init(), and BBOX_3D::Intersect().

◆ kbyi

float RAY::kbyi

Definition at line 72 of file ray.h.

Referenced by Init(), and BBOX_3D::Intersect().

◆ kbyj

float RAY::kbyj

Definition at line 72 of file ray.h.

Referenced by Init(), and BBOX_3D::Intersect().

◆ m_Classification

RAY_CLASSIFICATION RAY::m_Classification

Definition at line 68 of file ray.h.

Referenced by Init(), and BBOX_3D::Intersect().

◆ m_Dir

◆ m_dirIsNeg

◆ m_InvDir

◆ m_Origin

◆ rayID

unsigned int RAY::rayID

unique ray ID - not used - dummy

Definition at line 65 of file ray.h.

Referenced by Init().


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