KiCad PCB EDA Suite
Loading...
Searching...
No Matches
oval.h File Reference
#include <vector>
#include <math/box2.h>
#include <math/vector2d.h>
#include <geometry/approximation.h>
#include <geometry/eda_angle.h>
#include <geometry/point_types.h>
#include <geometry/seg.h>

Go to the source code of this file.

Classes

class  OVAL
 Class that represents an oval shape (rectangle with semicircular end caps) More...
 

Namespaces

namespace  KIGEOM
 

Typedefs

using KIGEOM::OVAL_KEY_POINT_FLAGS = unsigned int
 

Enumerations

enum  KIGEOM::OVAL_KEY_POINTS {
  KIGEOM::OVAL_CENTER = 1 << 0 , KIGEOM::OVAL_CAP_TIPS = 1 << 1 , KIGEOM::OVAL_CAP_CENTERS = 1 << 2 , KIGEOM::OVAL_SIDE_MIDPOINTS = 1 << 3 ,
  KIGEOM::OVAL_SIDE_ENDS = 1 << 4 , KIGEOM::OVAL_CARDINAL_EXTREMES = 1 << 5 , KIGEOM::OVAL_ALL_KEY_POINTS = 0xFF
}
 

Functions

SHAPE_LINE_CHAIN KIGEOM::ConvertToChain (const OVAL &aOval)
 
std::vector< TYPED_POINT2IKIGEOM::GetOvalKeyPoints (const OVAL &aOval, OVAL_KEY_POINT_FLAGS aFlags)
 Get a list of interesting points on an oval (rectangle with semicircular end caps)