|
| template<typename T> |
| bool | GEOM_TEST::IsInQuadrant (const VECTOR2< T > &aPoint, QUADRANT aQuadrant) |
| | Check value in Quadrant 1 (x and y both >= 0)
|
| |
| bool | GEOM_TEST::SegmentCompletelyInQuadrant (const SEG &aSeg, QUADRANT aQuadrant) |
| | Check if both ends of a segment are in Quadrant 1.
|
| |
| bool | GEOM_TEST::SegmentEndsInQuadrant (const SEG &aSeg, QUADRANT aQuadrant) |
| | Check if at least one end of the segment is in Quadrant 1.
|
| |
| bool | GEOM_TEST::SegmentCompletelyWithinRadius (const SEG &aSeg, const VECTOR2I &aPt, const int aRadius) |
| | Check if a segment is entirely within a certain radius of a point.
|
| |
| template<typename T> |
| bool | GEOM_TEST::IsPointAtDistance (const VECTOR2< T > &aPtA, const VECTOR2< T > &aPtB, T aExpDist, T aTol) |
| | Check that two points are the given distance apart, within the given tolerance.
|
| |
| template<typename T> |
| bool | GEOM_TEST::ArePointsNearCircle (const std::vector< VECTOR2< T > > &aPoints, const VECTOR2< T > &aCentre, T aRad, T aTol) |
| | Predicate for checking a set of points is within a certain tolerance of a circle.
|
| |
| template<typename T> |
| bool | GEOM_TEST::ArePerpendicular (const VECTOR2< T > &a, const VECTOR2< T > &b, const EDA_ANGLE &aTolerance) |
| | Check if two vectors are perpendicular.
|
| |
| SHAPE_POLY_SET | GEOM_TEST::FilletPolySet (SHAPE_POLY_SET &aPolySet, int aRadius, int aError) |
| | Fillet every polygon in a set and return a new set.
|
| |
| bool | GEOM_TEST::IsOutlineValid (const SHAPE_LINE_CHAIN &aChain) |
| | Verify that a SHAPE_LINE_CHAIN has been assembled correctly by ensuring that the arc start and end points match points on the chain and that any points inside the arcs actually collide with the arc segments (with an error margin of 5000 IU)
|
| |
| bool | GEOM_TEST::IsPolySetValid (const SHAPE_POLY_SET &aSet) |
| | Verify that a SHAPE_POLY_SET has been assembled correctly by verifying each of the outlines and holes contained within.
|
| |
| bool | GEOM_TEST::SegmentsHaveSameEndPoints (const SEG &aSeg1, const SEG &aSeg2) |
| | Check that two SEGs have the same end points, in either order.
|
| |
| double | GEOM_TEST::TriangleMinAngleDeg (const VECTOR2I &a, const VECTOR2I &b, const VECTOR2I &c) |
| | The smallest interior angle of a triangle, in degrees; near zero for a sliver.
|
| |
| std::ostream & | operator<< (std::ostream &os, const TYPED_POINT2I &c) |
| |