KiCad PCB EDA Suite
Loading...
Searching...
No Matches
point_types.h File Reference
#include <math/vector2d.h>

Go to the source code of this file.

Classes

struct  TYPED_POINT2I
 

Enumerations

enum  POINT_TYPE {
  PT_NONE = 0 , PT_CENTER = 1 << 0 , PT_END = 1 << 1 , PT_MID = 1 << 2 ,
  PT_QUADRANT = 1 << 3 , PT_CORNER = 1 << 4 , PT_INTERSECTION = 1 << 5 , PT_ON_ELEMENT = 1 << 6
}
 Meanings that can be assigned to a point in pure geometric terms. More...
 

Enumeration Type Documentation

◆ POINT_TYPE

enum POINT_TYPE

Meanings that can be assigned to a point in pure geometric terms.

For example, a circle has a center point and four quadrant points.

These can be combined using bitwise OR if a point has multiple meanings.

Enumerator
PT_NONE 

No specific point type.

PT_CENTER 

The point is the center of something.

PT_END 

The point is at the end of a segment, arc, etc.

PT_MID 

The point is at the middle of a segment, arc, etc.

PT_QUADRANT 

The point is on a quadrant of a circle (N, E, S, W points).

PT_CORNER 

The point is a corner of a polygon, rectangle, etc (you may want to infer PT_END from this)

PT_INTERSECTION 

The point is an intersection of two (or more) items.

PT_ON_ELEMENT 

The point is somewhere on another element, but not some specific point.

(you can infer this from some other point types)

Definition at line 37 of file point_types.h.