29#ifndef _TRIANGLE_2D_H_
30#define _TRIANGLE_2D_H_
33#include "../accelerators/container_2d.h"
68 float aBiuTo3dUnitsScale,
const BOARD_ITEM& aBoardItem );
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
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
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)