29#ifndef _TRIANGLE_2D_H_ 
   30#define _TRIANGLE_2D_H_ 
   67                                float aBiuTo3dUnitsScale, 
const BOARD_ITEM& aBoardItem );
 
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)
 
Represent a set of closed polygons.
 
const SFVEC2F & GetP2() const
 
bool Intersect(const RAYSEG2D &aSegRay, float *aOutT, SFVEC2F *aNormalOut) const override
 
INTERSECTION_RESULT IsBBoxInside(const BBOX_2D &aBBox) const override
Test this object if it's completely outside, intersects, or is completely inside aBBox.
 
bool Overlaps(const BBOX_2D &aBBox) const override
Test if the box overlaps the object.
 
const SFVEC2F & GetP3() const
 
TRIANGLE_2D(const SFVEC2F &aV1, const SFVEC2F &aV2, const SFVEC2F &aV3, const BOARD_ITEM &aBoardItem)
 
bool Intersects(const BBOX_2D &aBBox) const override
a.Intersects(b) ⇔ !a.Disjoint(b) ⇔ !(a ∩ b = ∅)
 
bool IsPointInside(const SFVEC2F &aPoint) const override
 
const SFVEC2F & GetP1() const
 
Manage a bounding box defined by two SFVEC2F min max points.
 
void ConvertPolygonToTriangles(const SHAPE_POLY_SET &aPolyList, CONTAINER_2D_BASE &aDstContainer, float aBiuTo3dUnitsScale, const BOARD_ITEM &aBoardItem)