KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ray.h File Reference

Go to the source code of this file.

Classes

struct  RAY
 
struct  RAY2D
 
struct  RAYSEG2D
 

Enumerations

enum class  RAY_CLASSIFICATION {
  MMM , MMP , MPM , MPP ,
  PMM , PMP , PPM , PPP ,
  POO , MOO , OPO , OMO ,
  OOP , OOM , OMM , OMP ,
  OPM , OPP , MOM , MOP ,
  POM , POP , MMO , MPO ,
  PMO , PPO
}
 

Functions

bool IntersectSegment (const SFVEC2F &aStartA, const SFVEC2F &aEnd_minus_startA, const SFVEC2F &aStartB, const SFVEC2F &aEnd_minus_startB)
 

Enumeration Type Documentation

◆ RAY_CLASSIFICATION

enum class RAY_CLASSIFICATION
strong
Enumerator
MMM 
MMP 
MPM 
MPP 
PMM 
PMP 
PPM 
PPP 
POO 
MOO 
OPO 
OMO 
OOP 
OOM 
OMM 
OMP 
OPM 
OPP 
MOM 
MOP 
POM 
POP 
MMO 
MPO 
PMO 
PPO 

Definition at line 31 of file ray.h.

Function Documentation

◆ IntersectSegment()

bool IntersectSegment ( const SFVEC2F aStartA,
const SFVEC2F aEnd_minus_startA,
const SFVEC2F aStartB,
const SFVEC2F aEnd_minus_startB 
)

Definition at line 181 of file ray.cpp.

References std::abs().

Referenced by ROUND_SEGMENT_2D::Intersects().