KiCad PCB EDA Suite
RAY2D Struct Reference

#include <ray.h>

Public Member Functions

 RAY2D (const SFVEC2F &o, const SFVEC2F &d)
 
SFVEC2F at (float t) const
 

Public Attributes

SFVEC2F m_Origin
 
SFVEC2F m_Dir
 
SFVEC2F m_InvDir
 

Detailed Description

Definition at line 74 of file ray.h.

Constructor & Destructor Documentation

RAY2D::RAY2D ( const SFVEC2F o,
const SFVEC2F d 
)
inline

Definition at line 80 of file ray.h.

80 { m_Origin = o; m_Dir = d; m_InvDir = (1.0f / d); }
SFVEC2F m_Dir
Definition: ray.h:77
SFVEC2F m_InvDir
Definition: ray.h:78
SFVEC2F m_Origin
Definition: ray.h:76

Member Function Documentation

SFVEC2F RAY2D::at ( float  t) const
inline

Definition at line 82 of file ray.h.

82 { return m_Origin + m_Dir * t; }
SFVEC2F m_Dir
Definition: ray.h:77
SFVEC2F m_Origin
Definition: ray.h:76

Member Data Documentation

SFVEC2F RAY2D::m_Dir

Definition at line 77 of file ray.h.

SFVEC2F RAY2D::m_InvDir

Definition at line 78 of file ray.h.

Referenced by CBBOX2D::Intersect().

SFVEC2F RAY2D::m_Origin

Definition at line 76 of file ray.h.

Referenced by CBBOX2D::Intersect().


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