KiCad PCB EDA Suite
Loading...
Searching...
No Matches
arc_construction.cpp File Reference
#include <geometry/arc_construction.h>
#include <cmath>
#include <limits>
#include <math/util.h>

Go to the source code of this file.

Namespaces

namespace  KIGEOM
 Construction helpers for the interactive arc drawing modes.
 

Functions

VECTOR2I KIGEOM::ProjectToChordBisector (const VECTOR2I &aStart, const VECTOR2I &aEnd, const VECTOR2I &aCursor)
 Project aCursor onto the perpendicular bisector of the chord aStart - aEnd.
 
ARC_SOLUTION KIGEOM::ArcThroughPoints (const VECTOR2I &aStart, const VECTOR2I &aOnArc, const VECTOR2I &aEnd)
 Arc from aStart to aEnd that passes through aOnArc.
 
ARC_SOLUTION KIGEOM::ArcFromStartEndMidDrag (const VECTOR2I &aStart, const VECTOR2I &aEnd, const VECTOR2I &aCursor)
 Arc from aStart to aEnd whose midpoint is aCursor projected onto the chord bisector.
 
ARC_SOLUTION KIGEOM::ArcFromStartEndCenterDrag (const VECTOR2I &aStart, const VECTOR2I &aEnd, const VECTOR2I &aCursor, bool aMajor)
 Arc from aStart to aEnd centered on aCursor projected onto the chord bisector.
 
ARC_SOLUTION KIGEOM::ArcFromStartTangentEnd (const VECTOR2I &aStart, const VECTOR2D &aTangent, const VECTOR2I &aEnd)
 Arc leaving aStart along aTangent and ending at aEnd.