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

A min-max version of BOX2 for fast intersection checking. More...

#include <box2_minmax.h>

Public Member Functions

 BOX2I_MINMAX ()
 
 BOX2I_MINMAX (int aLeft, int aTop, int aRight, int aBottom)
 
 BOX2I_MINMAX (const VECTOR2I &aPt)
 
 BOX2I_MINMAX (int aX, int aY)
 
 BOX2I_MINMAX (const BOX2I &aBox)
 
 BOX2I_MINMAX (const VECTOR2I &aA, const VECTOR2I &aB)
 
 operator BOX2I ()
 
 BOX2I_MINMAX (const SHAPE_ARC &aArc)
 
 BOX2I_MINMAX (const SEG &aSeg)
 
bool Intersects (const BOX2I_MINMAX &aOther) const
 
void Merge (const VECTOR2I &aPt)
 
VECTOR2I GetCenter () const
 
double GetDiameter () const
 

Public Attributes

int m_Left
 
int m_Top
 
int m_Right
 
int m_Bottom
 

Detailed Description

A min-max version of BOX2 for fast intersection checking.

Definition at line 36 of file box2_minmax.h.

Constructor & Destructor Documentation

◆ BOX2I_MINMAX() [1/8]

BOX2I_MINMAX::BOX2I_MINMAX ( )
inline

Definition at line 38 of file box2_minmax.h.

References m_Bottom, m_Left, m_Right, and m_Top.

Referenced by BOX2I_MINMAX(), BOX2I_MINMAX(), BOX2I_MINMAX(), and Intersects().

◆ BOX2I_MINMAX() [2/8]

BOX2I_MINMAX::BOX2I_MINMAX ( int aLeft,
int aTop,
int aRight,
int aBottom )
inline

Definition at line 40 of file box2_minmax.h.

References m_Bottom, m_Left, m_Right, and m_Top.

◆ BOX2I_MINMAX() [3/8]

BOX2I_MINMAX::BOX2I_MINMAX ( const VECTOR2I & aPt)
inline

Definition at line 45 of file box2_minmax.h.

References BOX2I_MINMAX().

◆ BOX2I_MINMAX() [4/8]

BOX2I_MINMAX::BOX2I_MINMAX ( int aX,
int aY )
inline

Definition at line 47 of file box2_minmax.h.

References m_Bottom, m_Left, m_Right, and m_Top.

◆ BOX2I_MINMAX() [5/8]

BOX2I_MINMAX::BOX2I_MINMAX ( const BOX2I & aBox)
inline

Definition at line 49 of file box2_minmax.h.

References m_Bottom, m_Left, m_Right, and m_Top.

◆ BOX2I_MINMAX() [6/8]

BOX2I_MINMAX::BOX2I_MINMAX ( const VECTOR2I & aA,
const VECTOR2I & aB )
inline

Definition at line 55 of file box2_minmax.h.

References m_Bottom, m_Left, m_Right, m_Top, VECTOR2< T >::x, and VECTOR2< T >::y.

◆ BOX2I_MINMAX() [7/8]

BOX2I_MINMAX::BOX2I_MINMAX ( const SHAPE_ARC & aArc)
inline

Definition at line 69 of file box2_minmax.h.

References BOX2I_MINMAX().

◆ BOX2I_MINMAX() [8/8]

BOX2I_MINMAX::BOX2I_MINMAX ( const SEG & aSeg)
inline

Definition at line 71 of file box2_minmax.h.

References BOX2I_MINMAX().

Member Function Documentation

◆ GetCenter()

VECTOR2I BOX2I_MINMAX::GetCenter ( ) const
inline

Definition at line 96 of file box2_minmax.h.

References m_Bottom, m_Left, m_Right, and m_Top.

◆ GetDiameter()

double BOX2I_MINMAX::GetDiameter ( ) const
inline

Definition at line 104 of file box2_minmax.h.

References end, m_Bottom, m_Left, m_Right, m_Top, VECTOR2< T >::x, and VECTOR2< T >::y.

◆ Intersects()

bool BOX2I_MINMAX::Intersects ( const BOX2I_MINMAX & aOther) const
inline

◆ Merge()

void BOX2I_MINMAX::Merge ( const VECTOR2I & aPt)
inline

Definition at line 88 of file box2_minmax.h.

References m_Bottom, m_Left, m_Right, m_Top, VECTOR2< T >::x, and VECTOR2< T >::y.

◆ operator BOX2I()

BOX2I_MINMAX::operator BOX2I ( )
inline

Definition at line 63 of file box2_minmax.h.

References BOX2ISafe(), m_Bottom, m_Left, m_Right, and m_Top.

Member Data Documentation

◆ m_Bottom

◆ m_Left

◆ m_Right

◆ m_Top


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