30#ifndef _POLYGON_4PT_2D_H_ 
   31#define _POLYGON_4PT_2D_H_ 
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
 
OBJECT_2D(OBJECT_2D_TYPE aObjType, const BOARD_ITEM &aBoardItem)
 
const SFVEC2F & GetV3() const
 
bool Intersect(const RAYSEG2D &aSegRay, float *aOutT, SFVEC2F *aNormalOut) const override
 
bool Intersects(const BBOX_2D &aBBox) const override
a.Intersects(b) ⇔ !a.Disjoint(b) ⇔ !(a ∩ b = ∅)
 
const SFVEC2F & GetV0() const
 
SFVEC2F m_precalc_slope[4]
 
const SFVEC2F & GetN1() const
 
const SFVEC2F & GetV1() const
 
bool IsPointInside(const SFVEC2F &aPoint) const override
 
const SFVEC2F & GetN0() const
 
INTERSECTION_RESULT IsBBoxInside(const BBOX_2D &aBBox) const override
Test this object if it's completely outside, intersects, or is completely inside aBBox.
 
const SFVEC2F & GetN2() const
 
const SFVEC2F & GetV2() const
 
POLYGON_4PT_2D(const SFVEC2F &v1, const SFVEC2F &v2, const SFVEC2F &v3, const SFVEC2F &v4, const BOARD_ITEM &aBoardItem)
 
const SFVEC2F & GetN3() const
 
bool Overlaps(const BBOX_2D &aBBox) const override
Test if the box overlaps the object.
 
Manage a bounding box defined by two SFVEC2F min max points.