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