KiCad PCB EDA Suite
VECTOR2< T > Class Template Reference

VECTOR2 defines a general 2D-vector/point. More...

#include <vector2d.h>

Public Types

typedef VECTOR2_TRAITS< T >::extended_type extended_type
 
typedef T coord_type
 

Public Member Functions

 VECTOR2 ()
 Construct a 2D-vector with x, y = 0. More...
 
 VECTOR2 (T x, T y)
 Construct a vector with given components x, y. More...
 
template<typename CastingType >
 VECTOR2 (const VECTOR2< CastingType > &aVec)
 Initializes a vector from another specialization. More...
 
 VECTOR2 (const VECTOR2< T > &aVec)
 Copy a vector. More...
 
template<typename CastedType >
VECTOR2< CastedType > operator() () const
 Casts a vector to another specialized subclass. More...
 
 operator wxPoint () const
 (wxPoint) implements the cast to wxPoint. More...
 
EuclideanNorm () const
 Destructor. More...
 
extended_type SquaredEuclideanNorm () const
 Function Squared Euclidean Norm computes the squared euclidean norm of the vector, which is defined as (x ** 2 + y ** 2). More...
 
VECTOR2< T > Perpendicular () const
 Function Perpendicular computes the perpendicular vector. More...
 
VECTOR2< T > Resize (T aNewLength) const
 Function Resize returns a vector of the same direction, but length specified in aNewLength. More...
 
double Angle () const
 Function Angle computes the angle of the vector. More...
 
VECTOR2< T > Rotate (double aAngle) const
 Function Rotate rotates the vector by a given angle. More...
 
const std::string Format () const
 Function Format returns the vector formatted as a string. More...
 
extended_type Cross (const VECTOR2< T > &aVector) const
 Function Cross() computes cross product of self with aVector. More...
 
extended_type Dot (const VECTOR2< T > &aVector) const
 Function Dot() computes dot product of self with aVector. More...
 
VECTOR2< T > & operator= (const VECTOR2< T > &aVector)
 Assignment operator. More...
 
VECTOR2< T > operator+ (const VECTOR2< T > &aVector) const
 Vector addition operator. More...
 
VECTOR2< T > operator+ (const T &aScalar) const
 Scalar addition operator. More...
 
VECTOR2< T > & operator+= (const VECTOR2< T > &aVector)
 Compound assignment operator. More...
 
VECTOR2< T > & operator+= (const T &aScalar)
 Compound assignment operator. More...
 
VECTOR2< T > operator- (const VECTOR2< T > &aVector) const
 Vector subtraction operator. More...
 
VECTOR2< T > operator- (const T &aScalar) const
 Scalar subtraction operator. More...
 
VECTOR2< T > & operator-= (const VECTOR2< T > &aVector)
 Compound assignment operator. More...
 
VECTOR2< T > & operator-= (const T &aScalar)
 Compound assignment operator. More...
 
VECTOR2< T > operator- ()
 Negate Vector operator. More...
 
extended_type operator * (const VECTOR2< T > &aVector) const
 Scalar product operator. More...
 
VECTOR2< T > operator * (const T &aFactor) const
 Multiplication with a factor. More...
 
VECTOR2< T > operator/ (const T &aFactor) const
 Division with a factor. More...
 
bool operator== (const VECTOR2< T > &aVector) const
 Equality operator. More...
 
bool operator!= (const VECTOR2< T > &aVector) const
 Not equality operator. More...
 
bool operator< (const VECTOR2< T > &aVector) const
 Smaller than operator. More...
 
bool operator<= (const VECTOR2< T > &aVector) const
 
bool operator> (const VECTOR2< T > &aVector) const
 Greater than operator. More...
 
bool operator>= (const VECTOR2< T > &aVector) const
 

Public Attributes

x
 
y
 

Static Public Attributes

static constexpr extended_type ECOORD_MAX = std::numeric_limits<extended_type>::max()
 
static constexpr extended_type ECOORD_MIN = std::numeric_limits<extended_type>::min()
 

Detailed Description

template<class T = int>
class VECTOR2< T >

VECTOR2 defines a general 2D-vector/point.

This class uses templates to be universal. Several operators are provided to help easy implementing of linear algebra equations.

Definition at line 62 of file vector2d.h.

Member Typedef Documentation

◆ coord_type

template<class T = int>
typedef T VECTOR2< T >::coord_type

Definition at line 79 of file vector2d.h.

◆ extended_type

template<class T = int>
typedef VECTOR2_TRAITS<T>::extended_type VECTOR2< T >::extended_type

Definition at line 78 of file vector2d.h.

Constructor & Destructor Documentation

◆ VECTOR2() [1/4]

template<class T >
VECTOR2< T >::VECTOR2 ( )

Construct a 2D-vector with x, y = 0.

Definition at line 268 of file vector2d.h.

269 {
270  x = y = 0.0;
271 }

◆ VECTOR2() [2/4]

template<class T>
VECTOR2< T >::VECTOR2 ( x,
y 
)

Construct a vector with given components x, y.

Definition at line 292 of file vector2d.h.

293 {
294  x = aX;
295  y = aY;
296 }

◆ VECTOR2() [3/4]

template<class T = int>
template<typename CastingType >
VECTOR2< T >::VECTOR2 ( const VECTOR2< CastingType > &  aVec)
inline

Initializes a vector from another specialization.

Beware of rouding issues.

Definition at line 105 of file vector2d.h.

106  {
107  x = (T) aVec.x;
108  y = (T) aVec.y;
109  }

◆ VECTOR2() [4/4]

template<class T = int>
VECTOR2< T >::VECTOR2 ( const VECTOR2< T > &  aVec)
inline

Copy a vector.

Definition at line 112 of file vector2d.h.

113  {
114  x = aVec.x;
115  y = aVec.y;
116  }

Member Function Documentation

◆ Angle()

◆ Cross()

template<class T>
VECTOR2< T >::extended_type VECTOR2< T >::Cross ( const VECTOR2< T > &  aVector) const

Function Cross() computes cross product of self with aVector.

Definition at line 520 of file vector2d.h.

521 {
522  return (extended_type) x * (extended_type) aVector.y -
523  (extended_type) y * (extended_type) aVector.x;
524 }
VECTOR2_TRAITS< T >::extended_type extended_type
Definition: vector2d.h:78

Referenced by RN_NET::TRIANGULATOR_STATE::areNodesColinear(), PNS::TOPOLOGY::AssembleDiffPair(), SEG::Intersect(), ALIGNED_DIMENSION::UpdateHeight(), and ORTHOGONAL_DIMENSION::updateText().

◆ Dot()

template<class T>
VECTOR2< T >::extended_type VECTOR2< T >::Dot ( const VECTOR2< T > &  aVector) const

Function Dot() computes dot product of self with aVector.

Definition at line 528 of file vector2d.h.

529 {
530  return (extended_type) x * (extended_type) aVector.x +
531  (extended_type) y * (extended_type) aVector.y;
532 }
VECTOR2_TRAITS< T >::extended_type extended_type
Definition: vector2d.h:78

Referenced by SHAPE_ARC::Collide(), PNS::DP_PRIMITIVE_PAIR::CursorOrientation(), SEG::LineProject(), SEG::NearestPoint(), PNS::MEANDER_SHAPE::reflect(), and SEG::TCoef().

◆ EuclideanNorm()

◆ Format()

template<class T >
const std::string VECTOR2< T >::Format ( ) const

Function Format returns the vector formatted as a string.

Returns
the formatted string

Definition at line 441 of file vector2d.h.

442 {
443  std::stringstream ss;
444 
445  ss << "( xy " << x << " " << y << " )";
446 
447  return ss.str();
448 }

Referenced by PNS::JOINT::Dump().

◆ operator *() [1/2]

template<class T>
VECTOR2< T >::extended_type VECTOR2< T >::operator * ( const VECTOR2< T > &  aVector) const

Scalar product operator.

Definition at line 487 of file vector2d.h.

488 {
489  return (extended_type)aVector.x * x + (extended_type)aVector.y * y;
490 }
VECTOR2_TRAITS< T >::extended_type extended_type
Definition: vector2d.h:78

◆ operator *() [2/2]

template<class T>
VECTOR2< T > VECTOR2< T >::operator * ( const T &  aFactor) const

Multiplication with a factor.

Definition at line 494 of file vector2d.h.

495 {
496  VECTOR2<T> vector( x * aFactor, y * aFactor );
497  return vector;
498 }
VECTOR2 defines a general 2D-vector/point.
Definition: vector2d.h:62

◆ operator wxPoint()

template<class T = int>
VECTOR2< T >::operator wxPoint ( ) const
inlineexplicit

(wxPoint) implements the cast to wxPoint.

Returns
wxPoint - the vector cast to wxPoint.

Definition at line 131 of file vector2d.h.

132  {
133  return wxPoint( x, y );
134  }

◆ operator!=()

template<class T>
bool VECTOR2< T >::operator!= ( const VECTOR2< T > &  aVector) const

Not equality operator.

Definition at line 571 of file vector2d.h.

572 {
573  return ( aVector.x != x ) || ( aVector.y != y );
574 }

◆ operator()()

template<class T = int>
template<typename CastedType >
VECTOR2<CastedType> VECTOR2< T >::operator() ( ) const
inline

Casts a vector to another specialized subclass.

Beware of rouding issues.

Definition at line 121 of file vector2d.h.

122  {
123  return VECTOR2<CastedType>( (CastedType) x, (CastedType) y );
124  }
VECTOR2 defines a general 2D-vector/point.
Definition: vector2d.h:62

◆ operator+() [1/2]

template<class T>
VECTOR2< T > VECTOR2< T >::operator+ ( const VECTOR2< T > &  aVector) const

Vector addition operator.

Definition at line 452 of file vector2d.h.

453 {
454  return VECTOR2<T> ( x + aVector.x, y + aVector.y );
455 }
VECTOR2 defines a general 2D-vector/point.
Definition: vector2d.h:62

◆ operator+() [2/2]

template<class T>
VECTOR2< T > VECTOR2< T >::operator+ ( const T &  aScalar) const

Scalar addition operator.

Definition at line 459 of file vector2d.h.

460 {
461  return VECTOR2<T> ( x + aScalar, y + aScalar );
462 }
VECTOR2 defines a general 2D-vector/point.
Definition: vector2d.h:62

◆ operator+=() [1/2]

template<class T>
VECTOR2< T > & VECTOR2< T >::operator+= ( const VECTOR2< T > &  aVector)

Compound assignment operator.

Definition at line 338 of file vector2d.h.

339 {
340  x += aVector.x;
341  y += aVector.y;
342  return *this;
343 }

◆ operator+=() [2/2]

template<class T>
VECTOR2< T > & VECTOR2< T >::operator+= ( const T &  aScalar)

Compound assignment operator.

Definition at line 347 of file vector2d.h.

348 {
349  x += aScalar;
350  y += aScalar;
351  return *this;
352 }

◆ operator-() [1/3]

template<class T>
VECTOR2< T > VECTOR2< T >::operator- ( const VECTOR2< T > &  aVector) const

Vector subtraction operator.

Definition at line 466 of file vector2d.h.

467 {
468  return VECTOR2<T> ( x - aVector.x, y - aVector.y );
469 }
VECTOR2 defines a general 2D-vector/point.
Definition: vector2d.h:62

◆ operator-() [2/3]

template<class T>
VECTOR2< T > VECTOR2< T >::operator- ( const T &  aScalar) const

Scalar subtraction operator.

Definition at line 473 of file vector2d.h.

474 {
475  return VECTOR2<T> ( x - aScalar, y - aScalar );
476 }
VECTOR2 defines a general 2D-vector/point.
Definition: vector2d.h:62

◆ operator-() [3/3]

template<class T>
VECTOR2< T > VECTOR2< T >::operator- ( )

Negate Vector operator.

Definition at line 480 of file vector2d.h.

481 {
482  return VECTOR2<T> ( -x, -y );
483 }
VECTOR2 defines a general 2D-vector/point.
Definition: vector2d.h:62

◆ operator-=() [1/2]

template<class T>
VECTOR2< T > & VECTOR2< T >::operator-= ( const VECTOR2< T > &  aVector)

Compound assignment operator.

Definition at line 356 of file vector2d.h.

357 {
358  x -= aVector.x;
359  y -= aVector.y;
360  return *this;
361 }

◆ operator-=() [2/2]

template<class T>
VECTOR2< T > & VECTOR2< T >::operator-= ( const T &  aScalar)

Compound assignment operator.

Definition at line 365 of file vector2d.h.

366 {
367  x -= aScalar;
368  y -= aScalar;
369  return *this;
370 }

◆ operator/()

template<class T>
VECTOR2< T > VECTOR2< T >::operator/ ( const T &  aFactor) const

Division with a factor.

Definition at line 502 of file vector2d.h.

503 {
504  if( std::is_integral<T>::value )
505  return VECTOR2<T>( KiROUND( x / aFactor ), KiROUND( y / aFactor ) );
506  else
507  return VECTOR2<T>( x / aFactor, y / aFactor );
508 }
VECTOR2 defines a general 2D-vector/point.
Definition: vector2d.h:62
constexpr ret_type KiROUND(fp_type v)
Round a floating point number to an integer using "round halfway cases away from zero".
Definition: util.h:68

◆ operator<()

template<class T>
bool VECTOR2< T >::operator< ( const VECTOR2< T > &  aVector) const

Smaller than operator.

Definition at line 536 of file vector2d.h.

537 {
538  return ( *this * *this ) < ( aVector * aVector );
539 }

◆ operator<=()

template<class T>
bool VECTOR2< T >::operator<= ( const VECTOR2< T > &  aVector) const

Definition at line 543 of file vector2d.h.

544 {
545  return ( *this * *this ) <= ( aVector * aVector );
546 }

◆ operator=()

template<class T>
VECTOR2< T > & VECTOR2< T >::operator= ( const VECTOR2< T > &  aVector)

Assignment operator.

Definition at line 329 of file vector2d.h.

330 {
331  x = aVector.x;
332  y = aVector.y;
333  return *this;
334 }

◆ operator==()

template<class T>
bool VECTOR2< T >::operator== ( const VECTOR2< T > &  aVector) const

Equality operator.

Definition at line 564 of file vector2d.h.

565 {
566  return ( aVector.x == x ) && ( aVector.y == y );
567 }

◆ operator>()

template<class T>
bool VECTOR2< T >::operator> ( const VECTOR2< T > &  aVector) const

Greater than operator.

Definition at line 550 of file vector2d.h.

551 {
552  return ( *this * *this ) > ( aVector * aVector );
553 }

◆ operator>=()

template<class T>
bool VECTOR2< T >::operator>= ( const VECTOR2< T > &  aVector) const

Definition at line 557 of file vector2d.h.

558 {
559  return ( *this * *this ) >= ( aVector * aVector );
560 }

◆ Perpendicular()

template<class T >
VECTOR2< T > VECTOR2< T >::Perpendicular ( ) const

Function Perpendicular computes the perpendicular vector.

Returns
Perpendicular vector

Definition at line 321 of file vector2d.h.

322 {
323  VECTOR2<T> perpendicular( -y, x );
324  return perpendicular;
325 }
VECTOR2 defines a general 2D-vector/point.
Definition: vector2d.h:62

Referenced by EC_LINE::Apply(), EC_PERPLINE::Apply(), PNS::ArcHull(), PNS::DP_GATEWAYS::BuildGeneric(), distanceFromPointToLine(), PNS::MEANDER_SHAPE::makeMiterShape(), and PNS::SegmentHull().

◆ Resize()

template<class T>
VECTOR2< T > VECTOR2< T >::Resize ( aNewLength) const

Function Resize returns a vector of the same direction, but length specified in aNewLength.

Parameters
aNewLengthlength of the rescaled vector
Returns
rescaled vector

Definition at line 411 of file vector2d.h.

412 {
413  if( x == 0 && y == 0 )
414  return VECTOR2<T> ( 0, 0 );
415 
416  extended_type l_sq_current = (extended_type) x * x + (extended_type) y * y;
417  extended_type l_sq_new = (extended_type) aNewLength * aNewLength;
418 
419  if( std::is_integral<T>::value )
420  {
421  return VECTOR2<T> (
422  ( x < 0 ? -1 : 1 ) *
423  KiROUND( std::sqrt( rescale( l_sq_new, (extended_type) x * x, l_sq_current ) ) ),
424  ( y < 0 ? -1 : 1 ) *
425  KiROUND( std::sqrt( rescale( l_sq_new, (extended_type) y * y, l_sq_current ) ) ) )
426  * sign( aNewLength );
427  }
428  else
429  {
430  return VECTOR2<T> (
431  ( x < 0 ? -1 : 1 ) *
432  std::sqrt( rescale( l_sq_new, (extended_type) x * x, l_sq_current ) ),
433  ( y < 0 ? -1 : 1 ) *
434  std::sqrt( rescale( l_sq_new, (extended_type) y * y, l_sq_current ) ) )
435  * sign( aNewLength );
436  }
437 }
VECTOR2_TRAITS< T >::extended_type extended_type
Definition: vector2d.h:78
int sign(T val)
Definition: util.h:101
VECTOR2 defines a general 2D-vector/point.
Definition: vector2d.h:62
T rescale(T aNumerator, T aValue, T aDenominator)
Function rescale()
Definition: util.h:95
constexpr ret_type KiROUND(fp_type v)
Round a floating point number to an integer using "round halfway cases away from zero".
Definition: util.h:68

Referenced by SCH_EAGLE_PLUGIN::adjustNetLabels(), PNS::ArcHull(), DIRECTION_45::BuildInitialTrace(), Collide(), PNS::DP_PRIMITIVE_PAIR::CursorOrientation(), drawBacksideTicks(), drawTicksAlongLine(), PNS::MEANDER_SHAPE::forward(), PNS::MEANDER_SHAPE::genMeanderShape(), GetArcCenter(), PNS::makeGapVector(), PNS::MEANDER_SHAPE::makeMiterShape(), PNS::MEANDERED_LINE::MeanderSegment(), PNS::MEANDER_SHAPE::miter(), PNS::MoveDiagonal(), SHAPE_LINE_CHAIN::PointAlong(), PNS::SHOVE::pushOrShoveVia(), PNS::VIA::PushoutForce(), PNS::SegmentHull(), CONVERT_TOOL::SegmentToArc(), PNS::tightenSegment(), ALIGNED_DIMENSION::updateGeometry(), ORTHOGONAL_DIMENSION::updateGeometry(), LEADER::updateGeometry(), PCB_POINT_EDITOR::updatePoints(), ALIGNED_DIMENSION::updateText(), ORTHOGONAL_DIMENSION::updateText(), and KIGFX::PREVIEW::RULER_ITEM::ViewDraw().

◆ Rotate()

template<class T >
VECTOR2< T > VECTOR2< T >::Rotate ( double  aAngle) const

Function Rotate rotates the vector by a given angle.

Rotate a VECTOR2 by aAngle.

Parameters
aAnglerotation angle in radians
Returns
rotated vector
Parameters
aAngle= rotation angle in radians

Definition at line 378 of file vector2d.h.

379 {
380  // Avoid common radian rotations that may allow for angular error
381  if( aAngle == 0.0 || aAngle == 2 * M_PI )
382  return VECTOR2<T> ( T( x ), T( y ) );
383 
384  if( aAngle == M_PI_2 )
385  return VECTOR2<T>( -T( y ), T( x ) );
386 
387  if( aAngle == M_PI )
388  return VECTOR2<T>( -T(x), -T( y ) );
389 
390  if( aAngle == 3 * M_PI_2 )
391  return VECTOR2<T>( T( y ), -T( x ) );
392 
393  double sa = sin( aAngle );
394  double ca = cos( aAngle );
395 
396  if( std::is_integral<T>::value )
397  {
398  return VECTOR2<T> ( KiROUND( (double) x * ca - (double) y * sa ),
399  KiROUND( (double) x * sa + (double) y * ca ) );
400 
401  }
402  else
403  {
404  return VECTOR2<T> ( T( (double) x * ca - (double) y * sa ),
405  T( (double) x * sa + (double) y * ca ) );
406  }
407 }
#define M_PI_2
Definition: transline.cpp:37
VECTOR2 defines a general 2D-vector/point.
Definition: vector2d.h:62
constexpr ret_type KiROUND(fp_type v)
Round a floating point number to an integer using "round halfway cases away from zero".
Definition: util.h:68

Referenced by DXF_IMPORT_PLUGIN::addArc(), EC_45DEGREE::Apply(), EC_CIRCLE::Apply(), DIRECTION_45::BuildInitialTrace(), PNS::OPTIMIZER::circleBreakouts(), PCB_GRID_HELPER::computeAnchors(), computeCenter(), KIGFX::WS_PAINTER::draw(), KIGFX::CAIRO_GAL_BASE::DrawArcSegment(), drawBacksideTicks(), drawTicksAlongLine(), GetArcCenter(), KIGFX::PREVIEW::ARC_GEOM_MANAGER::GetEndRadiusEnd(), getRectangleAlongCentreLine(), KIGFX::PREVIEW::ARC_GEOM_MANAGER::GetStartRadiusEnd(), PNS::MEANDER_SHAPE::miter(), SHAPE_ARC::Rotate(), SHAPE_LINE_CHAIN::Rotate(), BASIC_GAL::transform(), PNS::MEANDER_SHAPE::turn(), ALIGNED_DIMENSION::updateGeometry(), ORTHOGONAL_DIMENSION::updateGeometry(), LEADER::updateGeometry(), CENTER_DIMENSION::updateGeometry(), ALIGNED_DIMENSION::updateText(), and ORTHOGONAL_DIMENSION::updateText().

◆ SquaredEuclideanNorm()

template<class T >
VECTOR2< T >::extended_type VECTOR2< T >::SquaredEuclideanNorm ( ) const

Function Squared Euclidean Norm computes the squared euclidean norm of the vector, which is defined as (x ** 2 + y ** 2).

It is used to calculate the length of the vector.

Returns
Scalar, the euclidean norm

Definition at line 307 of file vector2d.h.

308 {
309  return (extended_type) x * x + (extended_type) y * y;
310 }
VECTOR2_TRAITS< T >::extended_type extended_type
Definition: vector2d.h:78

Referenced by DIRECTION_45::BuildInitialTrace(), Collide(), SHAPE_ARC::Collide(), collideShapes(), and PAD::HitTest().

Member Data Documentation

◆ ECOORD_MAX

◆ ECOORD_MIN

template<class T = int>
constexpr extended_type VECTOR2< T >::ECOORD_MIN = std::numeric_limits<extended_type>::min()
static

Definition at line 82 of file vector2d.h.

◆ x

template<class T = int>
T VECTOR2< T >::x

Definition at line 84 of file vector2d.h.

Referenced by DXF_IMPORT_PLUGIN::addArc(), PNS_PCBNEW_DEBUG_DECORATOR::AddBox(), GRAPHICS_IMPORTER_PCBNEW::AddCircle(), ZONE_FILLER::addHatchFillTypeOnZone(), PNS_KICAD_IFACE::AddItem(), DXF_IMPORT_PLUGIN::addMText(), BOARD_ADAPTER::addShapeWithClearance(), BOARD_ADAPTER::addSolidAreasShapes(), DXF_IMPORT_PLUGIN::addText(), TRIANGLE_DISPLAY_LIST::AddToMiddleContourns(), RENDER_3D_LEGACY::addTopAndBottomTriangles(), DXF_IMPORT_PLUGIN::addVertex(), GRID_HELPER::Align(), GRID_HELPER::AlignGrid(), PCB_GRID_HELPER::AlignToArc(), PCB_GRID_HELPER::AlignToSegment(), KIGFX::CAIRO_GAL::allocateBitmaps(), SHAPE_POLY_SET::Append(), EC_VERTICAL::Apply(), SEG::ApproxCollinear(), SEG::ApproxParallel(), DXF_PLOTTER::Arc(), HPGL_PLOTTER::Arc(), PS_PLOTTER::Arc(), PDF_PLOTTER::Arc(), SVG_PLOTTER::Arc(), SHAPE_RECT::BBox(), KIGFX::OPENGL_GAL::beginDrawing(), EE_GRID_HELPER::BestSnapAnchor(), PCB_GRID_HELPER::BestSnapAnchor(), SVG_PLOTTER::BezierCurve(), KIGFX::OPENGL_GAL::BitmapText(), KIGFX::OPENGL_GAL::blitCursor(), BOOST_AUTO_TEST_CASE(), BuildConvexHull(), PAD::BuildEffectiveShapes(), PNS::DP_GATEWAYS::BuildForCursor(), KI_TEST::BuildHSeg(), DIRECTION_45::BuildInitialTrace(), BOARD_ADAPTER::buildPadOutlineAsSegments(), KI_TEST::BuildRectChain(), KI_TEST::BuildVSeg(), LIB_ARC::CalcMidPoint(), calculateBezierSegmentationThreshold(), SHAPE_ARC::ccw(), SEG::ccw(), SHAPE_SIMPLE::CDPoint(), KIGFX::WX_VIEW_CONTROLS::CenterOnCursor(), SHAPE_POLY_SET::chamferFilletPolygon(), POLY_GRID_PARTITION::checkClearance(), PNS::DP_GATEWAYS::checkDiagonalAlignment(), DXF_PLOTTER::Circle(), PS_PLOTTER::Circle(), PDF_PLOTTER::Circle(), SVG_PLOTTER::Circle(), KIGFX::CAIRO_GAL_BASE::ClearScreen(), Collide(), SHAPE_ARC::Collide(), SHAPE_RECT::Collide(), SEG::Collinear(), PNS_KICAD_IFACE::Commit(), commonParallelProjection(), PNS::commonParallelProjection(), PCB_GRID_HELPER::computeAnchors(), KIGFX::OPENGL_GAL::computeBitmapTextSize(), computeCenter(), AR_AUTOPLACER::computePlacementRatsnestCost(), KIGFX::STROKE_FONT::ComputeStringBoundaryLimits(), PSLIKE_PLOTTER::computeTextParameters(), KIGFX::CAIRO_PRINT_GAL::ComputeWorldScreenMatrix(), KIGFX::OPENGL_GAL::ComputeWorldScreenMatrix(), DIRECTION_45::construct_(), POLY_GRID_PARTITION::containsPoint(), ConvertOutlineToPolygon(), ConvertPolygonToTriangles(), SHAPE_LINE_CHAIN::convertToClipper(), PROPERTIES_FRAME::CopyPrmsFromGeneralToPanel(), PROPERTIES_FRAME::CopyPrmsFromItemToPanel(), PROPERTIES_FRAME::CopyPrmsFromPanelToGeneral(), PROPERTIES_FRAME::CopyPrmsFromPanelToItem(), CovertPolygonToBlocks(), KIGFX::OPENGL_COMPOSITOR::CreateBuffer(), MICROWAVE_TOOL::createInductorBetween(), PolygonTriangulation::createList(), CreatePadsShapesSection(), BOARD_ADAPTER::createPadWithClearance(), BOARD_ADAPTER::createPadWithDrill(), VECTOR2< unsigned int >::Cross(), COMMON_TOOLS::CursorControl(), DIALOG_BOARD_REANNOTATE::DIALOG_BOARD_REANNOTATE(), DIALOG_IMPORT_GFX::DIALOG_IMPORT_GFX(), EDIT_TOOL::doMoveSelection(), VECTOR2< unsigned int >::Dot(), COMMON_TOOLS::doZoomFit(), dpoint_dist(), KIGFX::WS_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::OPENGL_GAL::DrawArc(), KIGFX::OPENGL_GAL::DrawArcSegment(), KIGFX::OPENGL_GAL::DrawCircle(), drawCursorStrings(), KIGFX::OPENGL_GAL::drawFilledSemiCircle(), D_CODE::DrawFlashedPolygon(), KIGFX::OPENGL_GAL::DrawGrid(), KIGFX::CAIRO_GAL_BASE::DrawGrid(), KIGFX::CAIRO_GAL_BASE::drawGridCross(), KIGFX::CAIRO_GAL_BASE::drawGridPoint(), BASIC_GAL::DrawLine(), KIGFX::OPENGL_GAL::drawLineQuad(), BOARD_PRINTOUT::DrawPage(), KIGFX::CAIRO_GAL_BASE::drawPoly(), KIGFX::OPENGL_GAL::DrawPolygon(), KI_TEST::DrawRect(), KIGFX::CAIRO_GAL_BASE::DrawRectangle(), KIGFX::OPENGL_GAL::DrawRectangle(), KIGFX::CAIRO_GAL_BASE::DrawSegment(), SYMBOL_EDITOR_DRAWING_TOOLS::DrawShape(), KIGFX::STROKE_FONT::drawSingleLineText(), KIGFX::OPENGL_GAL::drawStrokedSemiCircle(), KIGFX::PREVIEW::DrawTextNextToCursor(), KIGFX::OPENGL_GAL::drawTriangulatedPolyset(), PNS::DP_PRIMITIVE_PAIR::dump(), SHAPE_LINE_CHAIN_BASE::EdgeContainingPoint(), PCB_POINT_EDITOR::editArcEndpointKeepCenter(), PCB_POINT_EDITOR::editArcEndpointKeepTangent(), PCB_POINT_EDITOR::editArcMidKeepCenter(), PCB_POINT_EDITOR::editArcMidKeepEndpoints(), GERBER_PLOTTER::emitDcode(), KIGFX::CAIRO_GAL::endDrawing(), HPGL_PLOTTER::EndPlot(), PAD_TOOL::EnumeratePads(), PCB_EDIT_FRAME::ExecuteRemoteCommand(), export_vrml_board(), export_vrml_padshape(), export_vrml_polygon(), export_vrml_zones(), DSN::SPECCTRA_DB::fillBOUNDARY(), EDIT_TOOL::FilletTracks(), AR_AUTOPLACER::fillMatrix(), SCH_EDITOR_CONTROL::FindComponentAndItem(), findEndSegments(), SYMBOL_PREVIEW_WIDGET::fitOnDrawArea(), GERBER_PLOTTER::FlashPadChamferRoundRect(), HPGL_PLOTTER::FlashPadCircle(), PSLIKE_PLOTTER::FlashPadCustom(), DXF_PLOTTER::FlashPadCustom(), HPGL_PLOTTER::FlashPadCustom(), GERBER_PLOTTER::FlashPadCustom(), PSLIKE_PLOTTER::FlashPadRoundRect(), DXF_PLOTTER::FlashPadRoundRect(), HPGL_PLOTTER::FlashPadRoundRect(), GERBER_PLOTTER::FlashPadRoundRect(), BOARD_ITEM::Flip(), WS_DATA_MODEL_IO::Format(), WS_DATA_MODEL_IO::format(), SHAPE_SEGMENT::Format(), SHAPE_RECT::Format(), WS_DATA_MODEL_IO::formatCoordinate(), FormatInternalUnits(), WS_DATA_MODEL_IO::formatRepeatParameters(), FractureEdge::FractureEdge(), SHAPE_POLY_SET::fractureSingle(), GENERAL_COLLECTORS_GUIDE::GENERAL_COLLECTORS_GUIDE(), GERBER_DRAW_ITEM::GetABPosition(), CN_ITEM::GetAnchor(), GetArcAngle(), GetArcCenter(), PAD::GetBestAnchorPosition(), DIMENSION_BASE::GetBoundingBox(), CENTER_DIMENSION::GetBoundingBox(), SHAPE_ARC::GetCentralAngle(), WS_DATA_ITEM_POLYGONS::GetCornerPosition(), WS_DATA_ITEM_POLYGONS::GetCornerPositionUi(), SHAPE_ARC::GetEndAngle(), WS_DATA_ITEM::GetEndPos(), KIGFX::ORIGIN_VIEWITEM::GetEndPosition(), WS_DATA_ITEM::GetEndPosUi(), GRID_HELPER::GetGrid(), KIGFX::GAL::GetGridPoint(), ARRAY_GRID_OPTIONS::GetItemNumber(), KIGFX::GAL::GetMinDepth(), PL_EDITOR_LAYOUT::GetMsgPanelInfo(), WS_DRAW_ITEM_BASE::GetMsgPanelInfo(), EDA_DRAW_FRAME::GetNearestGridPosition(), KIGFX::ORIGIN_VIEWITEM::GetPosition(), getRectangleAlongCentreLine(), KIGFX::OPENGL_GAL::getScreenPixelSize(), KIGFX::SCH_PAINTER::getShadowWidth(), SHAPE_ARC::GetStartAngle(), WS_DATA_ITEM::GetStartPos(), WS_DATA_ITEM::GetStartPosUi(), ARRAY_GRID_OPTIONS::GetTransform(), MATRIX3x3< double >::GetTranslation(), GetVectorSnapped45(), EDIT_POINT::GetX(), GraphicTextWidth(), POLY_GRID_PARTITION::grid2poly(), POLY_GRID_PARTITION::grid2polyX(), PCB_SELECTION_TOOL::GuessSelectionCandidates(), KIGFX::WX_VIEW_CONTROLS::handleAutoPanning(), ZONE::HatchBorder(), WS_DRAW_ITEM_POLYPOLYGONS::HitTest(), DIALOG_NEW_DATAITEM::initDlg(), KIGFX::OPENGL_COMPOSITOR::Initialize(), DXF_IMPORT_PLUGIN::insertArc(), DXF_IMPORT_PLUGIN::insertLine(), PolygonTriangulation::insertVertex(), SEG::Intersect(), PNS::LINE::Is45Degree(), GEOM_TEST::IsInQuadrant(), WS_DATA_ITEM::IsInsidePage(), WS_DATA_ITEM_POLYGONS::IsInsidePage(), KIGFX::CAIRO_PRINT_GAL::isLandscape(), EDA_TEXT::LenSize(), LexicographicalCompare(), LexicographicalMax(), LexicographicalMin(), SEG::LineDistance(), SEG::LineProject(), CADSTAR_PCB_ARCHIVE_LOADER::loadDimensions(), KIGFX::STROKE_FONT::LoadNewStrokeFont(), EAGLE_PLUGIN::loadPolygon(), EDIT_POINTS_FACTORY::Make(), GEOM_TEST::MakeSquarePolyLine(), GRAPHICS_IMPORTER_PCBNEW::MapCoordinate(), mapCoords(), MARKER_BASE::MARKER_BASE(), SHAPE_ARC::Mirror(), ZONE::Mirror(), SHAPE_LINE_CHAIN::Mirror(), STATUS_POPUP::Move(), BOARD_ITEM::Move(), WS_DATA_ITEM::MoveEndPointTo(), WS_DATA_ITEM::MoveEndPointToUi(), EDIT_TOOL::MoveExact(), WS_DATA_ITEM::MoveStartPointTo(), WS_DATA_ITEM::MoveToUi(), SEG::NearestPoint(), ROUTER_TOOL::NeighboringSegmentFilter(), PNS::OctagonalHull(), ACTION_MENU::OnIdle(), DIALOG_NEW_DATAITEM::OnOKClick(), KIGFX::WX_VIEW_CONTROLS::onScroll(), PCB_POINT_EDITOR::OnSelectionChange(), KIGFX::WX_VIEW_CONTROLS::onTimer(), KIGFX::WX_VIEW_CONTROLS::onWheel(), operator *(), VECTOR2< unsigned int >::operator *(), VECTOR2< unsigned int >::operator wxPoint(), VECTOR2< unsigned int >::operator!=(), PNS::JOINT::JOINT_TAG_HASH::operator()(), POLY_GRID_PARTITION::segHash::operator()(), VECTOR2< unsigned int >::operator()(), VECTOR2< unsigned int >::operator+(), VECTOR2< unsigned int >::operator+=(), VECTOR2< unsigned int >::operator-(), VECTOR2< unsigned int >::operator-=(), operator<<(), VECTOR2< unsigned int >::operator=(), VECTOR2< unsigned int >::operator==(), SHAPE_RECT::Outline(), BITMAPCONV_INFO::outputOnePolygon(), EAGLE_PLUGIN::packagePolygon(), COMMON_TOOLS::PanControl(), SHAPE_LINE_CHAIN::Parse(), SHAPE_POLY_SET::Parse(), SCH_SEXPR_PARSER::parseArc(), PAGE_LAYOUT_READER_PARSER::parseBitmap(), PAGE_LAYOUT_READER_PARSER::parseCoordinate(), PAGE_LAYOUT_READER_PARSER::parseGraphic(), PAGE_LAYOUT_READER_PARSER::parsePolygon(), PAGE_LAYOUT_READER_PARSER::parsePolyOutline(), PAGE_LAYOUT_READER_PARSER::parseSetup(), PAGE_LAYOUT_READER_PARSER::parseText(), partitionPolyIntoRegularCellGrid(), DXF_PLOTTER::PenTo(), HPGL_PLOTTER::PenTo(), PS_PLOTTER::PenTo(), PDF_PLOTTER::PenTo(), SVG_PLOTTER::PenTo(), pinEditedCorner(), SYMBOL_EDITOR_DRAWING_TOOLS::PlaceAnchor(), BOARD_EDITOR_CONTROL::PlaceModule(), BOARD_EDITOR_CONTROL::PlaceTarget(), GERBER_PLOTTER::plotArc(), PS_PLOTTER::PlotImage(), PDF_PLOTTER::PlotImage(), DXF_PLOTTER::PlotPoly(), PS_PLOTTER::PlotPoly(), PDF_PLOTTER::PlotPoly(), SVG_PLOTTER::PlotPoly(), PlotWorkSheet(), SHAPE_LINE_CHAIN_BASE::PointInside(), PNS::pointInside2(), POLY_GRID_PARTITION::poly2grid(), POLY_GRID_PARTITION::poly2gridX(), polygon_Convert(), GERBER_DRAW_ITEM::PrintGerberPoly(), WS_DRAW_ITEM_POLYPOLYGONS::PrintWsItem(), processEdge(), SHAPE_LINE_CHAIN::POINT_INSIDE_TRACKER::processVertex(), PNS::SHOVE::pushOrShoveVia(), HPGL_PLOTTER::Rect(), PS_PLOTTER::Rect(), PDF_PLOTTER::Rect(), SVG_PLOTTER::Rect(), PNS::OPTIMIZER::rectBreakouts(), DIALOG_PAD_PROPERTIES::redraw(), PNS::MEANDER_SHAPE::reflect(), RENDER_3D_RAYTRACE::Reload(), FOOTPRINT_PREVIEW_PANEL::renderFootprint(), BOARD_ITEM::Rotate(), RotatePoint(), KIGFX::CAIRO_GAL_BASE::roundp(), CLIPBOARD_IO::SaveSelection(), IMPORTED_LINE::Scale(), IMPORTED_CIRCLE::Scale(), IMPORTED_ARC::Scale(), KIGFX::CAIRO_GAL_BASE::Scale(), KIGFX::OPENGL_GAL::Scale(), IMPORTED_TEXT::Scale(), IMPORTED_SPLINE::Scale(), POLY_GRID_PARTITION::scanCell(), PL_SELECTION_TOOL::selectionContains(), EE_SELECTION_TOOL::selectionContains(), PL_SELECTION_TOOL::selectMultiple(), EE_SELECTION_TOOL::selectMultiple(), PCB_SELECTION_TOOL::selectMultiple(), GERBVIEW_SELECTION_TOOL::selectPoint(), ZOOM_TOOL::selectRegion(), WS_DATA_ITEM_POLYGONS::SetBoundingBox(), KIGFX::VIEW::SetCenter(), KIGFX::CAIRO_GAL::setCompositor(), KIGFX::PREVIEW::SetConstantGlyphHeight(), WS_DATA_ITEM_TEXT::SetConstrainedTextSize(), ZONE::SetCornerPosition(), WS_DATA_ITEM::SetEnd(), KIGFX::GAL::SetGridOrigin(), KIGFX::GAL::SetGridSize(), KIGFX::GAL::SetLayerDepth(), KIGFX::SHADER::SetParameter(), EDIT_POINT::SetPosition(), MATRIX3x3< double >::SetScale(), KIGFX::CAIRO_PRINT_GAL::SetSheetSize(), WS_DATA_ITEM::SetStart(), MATRIX3x3< double >::SetTranslation(), WS_DATA_MODEL::SetupDrawEnvironment(), KIGFX::VIEW::SetViewport(), SHAPE_ARC::SHAPE_ARC(), PNS::shovedArea(), DIALOG_IMPORT_GFX::showPcbImportOffsets(), SCH_DRAWING_TOOLS::sizeSheet(), sortEndsByDescendingX(), EDA_DRAW_PANEL_GAL::SwitchBackend(), WS_DATA_ITEM_TEXT::SyncDrawItems(), PNS_KICAD_IFACE_BASE::syncPad(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testZones(), DXF_PLOTTER::Text(), PS_PLOTTER::Text(), SVG_PLOTTER::Text(), DXF_PLOTTER::ThickSegment(), KIGFX::VIEW::ToScreen(), KIGFX::VIEW::ToWorld(), KIGFX::CAIRO_GAL_BASE::Translate(), KIGFX::OPENGL_GAL::Translate(), ALIGNED_DIMENSION::updateGeometry(), DXF_IMPORT_PLUGIN::updateImageLimits(), PCB_POINT_EDITOR::updateItem(), POLYGON_GEOM_MANAGER::updateLeaderPoints(), EE_POINT_EDITOR::updateParentItem(), DIALOG_IMPORT_GFX::updatePcbImportOffsets_mm(), EE_POINT_EDITOR::updatePoints(), PL_POINT_EDITOR::updatePoints(), KIGFX::WX_VIEW_CONTROLS::UpdateScrollbars(), PL_EDITOR_FRAME::UpdateStatusBar(), SCH_BASE_FRAME::UpdateStatusBar(), PCB_BASE_FRAME::UpdateStatusBar(), GERBVIEW_FRAME::UpdateStatusBar(), VECTOR2< unsigned int >::VECTOR2(), KIGFX::VERTEX_MANAGER::Vertex(), PAD::ViewBBox(), KIGFX::ORIGIN_VIEWITEM::ViewDraw(), KIGFX::PREVIEW::TWO_POINT_ASSISTANT::ViewDraw(), KIGFX::PREVIEW::SELECTION_AREA::ViewDraw(), KIGFX::WX_VIEW_CONTROLS::WarpCursor(), EDIT_POINT::WithinPoint(), GERBER_PLOTTER::writeApertureList(), HYPERLYNX_EXPORTER::writeNetObjects(), GBR_TO_PCB_EXPORTER::writePcbPolygon(), GBR_TO_PCB_EXPORTER::writePcbZoneItem(), KIGFX::CAIRO_GAL_BASE::xform(), PANEL_PCBNEW_COLOR_SETTINGS::zoomFitPreview(), PANEL_EESCHEMA_COLOR_SETTINGS::zoomFitPreview(), PCB_SELECTION_TOOL::zoomFitSelection(), and DIALOG_IMPORT_GFX::~DIALOG_IMPORT_GFX().

◆ y

template<class T = int>
T VECTOR2< T >::y

Definition at line 84 of file vector2d.h.

Referenced by DXF_IMPORT_PLUGIN::addArc(), PNS_PCBNEW_DEBUG_DECORATOR::AddBox(), GRAPHICS_IMPORTER_PCBNEW::AddCircle(), ZONE_FILLER::addHatchFillTypeOnZone(), PNS_KICAD_IFACE::AddItem(), DXF_IMPORT_PLUGIN::addMText(), BOARD_ADAPTER::addShapeWithClearance(), BOARD_ADAPTER::addSolidAreasShapes(), DXF_IMPORT_PLUGIN::addText(), TRIANGLE_DISPLAY_LIST::AddToMiddleContourns(), RENDER_3D_LEGACY::addTopAndBottomTriangles(), DXF_IMPORT_PLUGIN::addVertex(), GRID_HELPER::Align(), GRID_HELPER::AlignGrid(), PCB_GRID_HELPER::AlignToArc(), PCB_GRID_HELPER::AlignToSegment(), KIGFX::CAIRO_GAL::allocateBitmaps(), SHAPE_POLY_SET::Append(), EC_HORIZONTAL::Apply(), SEG::ApproxCollinear(), SEG::ApproxParallel(), DXF_PLOTTER::Arc(), HPGL_PLOTTER::Arc(), PS_PLOTTER::Arc(), PDF_PLOTTER::Arc(), SVG_PLOTTER::Arc(), SHAPE_RECT::BBox(), KIGFX::OPENGL_GAL::beginDrawing(), EE_GRID_HELPER::BestSnapAnchor(), PCB_GRID_HELPER::BestSnapAnchor(), SVG_PLOTTER::BezierCurve(), KIGFX::OPENGL_GAL::BitmapText(), KIGFX::OPENGL_GAL::blitCursor(), BOOST_AUTO_TEST_CASE(), BuildConvexHull(), PAD::BuildEffectiveShapes(), PNS::DP_GATEWAYS::BuildForCursor(), KI_TEST::BuildHSeg(), DIRECTION_45::BuildInitialTrace(), BOARD_ADAPTER::buildPadOutlineAsSegments(), KI_TEST::BuildRectChain(), KI_TEST::BuildVSeg(), LIB_ARC::CalcMidPoint(), calculateBezierSegmentationThreshold(), SHAPE_ARC::ccw(), SEG::ccw(), SHAPE_SIMPLE::CDPoint(), KIGFX::WX_VIEW_CONTROLS::CenterOnCursor(), POLY_GRID_PARTITION::checkClearance(), PNS::DP_GATEWAYS::checkDiagonalAlignment(), DXF_PLOTTER::Circle(), PS_PLOTTER::Circle(), PDF_PLOTTER::Circle(), SVG_PLOTTER::Circle(), KIGFX::CAIRO_GAL_BASE::ClearScreen(), Collide(), SHAPE_ARC::Collide(), SHAPE_RECT::Collide(), SEG::Collinear(), PNS_KICAD_IFACE::Commit(), commonParallelProjection(), PNS::commonParallelProjection(), PCB_GRID_HELPER::computeAnchors(), KIGFX::OPENGL_GAL::computeBitmapTextSize(), KIGFX::STROKE_FONT::computeBoundingBox(), computeCenter(), KIGFX::STROKE_FONT::computeOverbarVerticalPosition(), AR_AUTOPLACER::computePlacementRatsnestCost(), KIGFX::STROKE_FONT::ComputeStringBoundaryLimits(), PSLIKE_PLOTTER::computeTextParameters(), KIGFX::STROKE_FONT::computeUnderlineVerticalPosition(), KIGFX::CAIRO_PRINT_GAL::ComputeWorldScreenMatrix(), KIGFX::OPENGL_GAL::ComputeWorldScreenMatrix(), DIRECTION_45::construct_(), POLY_GRID_PARTITION::containsPoint(), ConvertOutlineToPolygon(), ConvertPolygonToTriangles(), SHAPE_LINE_CHAIN::convertToClipper(), PROPERTIES_FRAME::CopyPrmsFromGeneralToPanel(), PROPERTIES_FRAME::CopyPrmsFromItemToPanel(), PROPERTIES_FRAME::CopyPrmsFromPanelToGeneral(), PROPERTIES_FRAME::CopyPrmsFromPanelToItem(), CovertPolygonToBlocks(), KIGFX::OPENGL_COMPOSITOR::CreateBuffer(), MICROWAVE_TOOL::createInductorBetween(), PolygonTriangulation::createList(), CreatePadsShapesSection(), BOARD_ADAPTER::createPadWithClearance(), BOARD_ADAPTER::createPadWithDrill(), VECTOR2< unsigned int >::Cross(), COMMON_TOOLS::CursorControl(), DIALOG_BOARD_REANNOTATE::DIALOG_BOARD_REANNOTATE(), DIALOG_IMPORT_GFX::DIALOG_IMPORT_GFX(), DIRECTION_45::DIRECTION_45(), EDIT_TOOL::doMoveSelection(), VECTOR2< unsigned int >::Dot(), COMMON_TOOLS::doZoomFit(), dpoint_dist(), KIGFX::STROKE_FONT::Draw(), KIGFX::WS_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::OPENGL_GAL::DrawArc(), KIGFX::OPENGL_GAL::DrawArcSegment(), KIGFX::OPENGL_GAL::DrawCircle(), drawCursorStrings(), KIGFX::OPENGL_GAL::drawFilledSemiCircle(), D_CODE::DrawFlashedPolygon(), KIGFX::OPENGL_GAL::DrawGrid(), KIGFX::CAIRO_GAL_BASE::DrawGrid(), KIGFX::CAIRO_GAL_BASE::drawGridCross(), KIGFX::CAIRO_GAL_BASE::drawGridPoint(), BASIC_GAL::DrawLine(), KIGFX::OPENGL_GAL::drawLineQuad(), BOARD_PRINTOUT::DrawPage(), KIGFX::CAIRO_GAL_BASE::drawPoly(), KIGFX::OPENGL_GAL::DrawPolygon(), KI_TEST::DrawRect(), KIGFX::CAIRO_GAL_BASE::DrawRectangle(), KIGFX::OPENGL_GAL::DrawRectangle(), KIGFX::CAIRO_GAL_BASE::DrawSegment(), SYMBOL_EDITOR_DRAWING_TOOLS::DrawShape(), KIGFX::STROKE_FONT::drawSingleLineText(), KIGFX::OPENGL_GAL::drawStrokedSemiCircle(), KIGFX::PREVIEW::DrawTextNextToCursor(), KIGFX::OPENGL_GAL::drawTriangulatedPolyset(), PNS::DP_PRIMITIVE_PAIR::dump(), SHAPE_LINE_CHAIN_BASE::EdgeContainingPoint(), PCB_POINT_EDITOR::editArcEndpointKeepCenter(), PCB_POINT_EDITOR::editArcEndpointKeepTangent(), PCB_POINT_EDITOR::editArcMidKeepCenter(), PCB_POINT_EDITOR::editArcMidKeepEndpoints(), GERBER_PLOTTER::emitDcode(), KIGFX::CAIRO_GAL::endDrawing(), HPGL_PLOTTER::EndPlot(), PAD_TOOL::EnumeratePads(), export_vrml_board(), export_vrml_padshape(), export_vrml_polygon(), export_vrml_zones(), DSN::SPECCTRA_DB::fillBOUNDARY(), AR_AUTOPLACER::fillMatrix(), SCH_EDITOR_CONTROL::FindComponentAndItem(), findEndSegments(), SYMBOL_PREVIEW_WIDGET::fitOnDrawArea(), GERBER_PLOTTER::FlashPadChamferRoundRect(), HPGL_PLOTTER::FlashPadCircle(), PSLIKE_PLOTTER::FlashPadCustom(), DXF_PLOTTER::FlashPadCustom(), HPGL_PLOTTER::FlashPadCustom(), GERBER_PLOTTER::FlashPadCustom(), PSLIKE_PLOTTER::FlashPadRoundRect(), DXF_PLOTTER::FlashPadRoundRect(), HPGL_PLOTTER::FlashPadRoundRect(), GERBER_PLOTTER::FlashPadRoundRect(), BOARD_ITEM::Flip(), WS_DATA_MODEL_IO::Format(), WS_DATA_MODEL_IO::format(), SHAPE_SEGMENT::Format(), SHAPE_RECT::Format(), WS_DATA_MODEL_IO::formatCoordinate(), FormatInternalUnits(), WS_DATA_MODEL_IO::formatRepeatParameters(), FractureEdge::FractureEdge(), GERBER_DRAW_ITEM::GetABPosition(), CN_ITEM::GetAnchor(), GetArcAngle(), GetArcCenter(), PAD::GetBestAnchorPosition(), DIMENSION_BASE::GetBoundingBox(), SHAPE_ARC::GetCentralAngle(), WS_DATA_ITEM_POLYGONS::GetCornerPosition(), WS_DATA_ITEM_POLYGONS::GetCornerPositionUi(), SHAPE_ARC::GetEndAngle(), WS_DATA_ITEM::GetEndPos(), KIGFX::ORIGIN_VIEWITEM::GetEndPosition(), WS_DATA_ITEM::GetEndPosUi(), GRID_HELPER::GetGrid(), KIGFX::GAL::GetGridPoint(), ARRAY_GRID_OPTIONS::GetItemNumber(), KIGFX::GAL::GetMaxDepth(), PL_EDITOR_LAYOUT::GetMsgPanelInfo(), WS_DRAW_ITEM_BASE::GetMsgPanelInfo(), EDA_DRAW_FRAME::GetNearestGridPosition(), KIGFX::ORIGIN_VIEWITEM::GetPosition(), getRectangleAlongCentreLine(), KIGFX::OPENGL_GAL::getScreenPixelSize(), SHAPE_ARC::GetStartAngle(), WS_DATA_ITEM::GetStartPos(), WS_DATA_ITEM::GetStartPosUi(), EDA_TEXT::GetTextBox(), ARRAY_GRID_OPTIONS::GetTransform(), MATRIX3x3< double >::GetTranslation(), GetVectorSnapped45(), EDIT_POINT::GetY(), POLY_GRID_PARTITION::grid2poly(), POLY_GRID_PARTITION::grid2polyY(), PCB_SELECTION_TOOL::GuessSelectionCandidates(), KIGFX::WX_VIEW_CONTROLS::handleAutoPanning(), ZONE::HatchBorder(), WS_DRAW_ITEM_POLYPOLYGONS::HitTest(), DIALOG_NEW_DATAITEM::initDlg(), KIGFX::OPENGL_COMPOSITOR::Initialize(), KIGFX::CAIRO_GAL::initSurface(), DXF_IMPORT_PLUGIN::insertArc(), DXF_IMPORT_PLUGIN::insertLine(), PolygonTriangulation::insertVertex(), SEG::Intersect(), PNS::LINE::Is45Degree(), GEOM_TEST::IsInQuadrant(), WS_DATA_ITEM::IsInsidePage(), WS_DATA_ITEM_POLYGONS::IsInsidePage(), KIGFX::CAIRO_PRINT_GAL::isLandscape(), LexicographicalCompare(), LexicographicalMax(), LexicographicalMin(), SEG::LineDistance(), SEG::LineProject(), CADSTAR_PCB_ARCHIVE_LOADER::loadDimensions(), KIGFX::STROKE_FONT::LoadNewStrokeFont(), EAGLE_PLUGIN::loadPolygon(), EDIT_POINTS_FACTORY::Make(), GEOM_TEST::MakeSquarePolyLine(), GRAPHICS_IMPORTER_PCBNEW::MapCoordinate(), mapCoords(), MARKER_BASE::MARKER_BASE(), FractureEdge::matches(), SHAPE_ARC::Mirror(), ZONE::Mirror(), SHAPE_LINE_CHAIN::Mirror(), STATUS_POPUP::Move(), BOARD_ITEM::Move(), WS_DATA_ITEM::MoveEndPointTo(), WS_DATA_ITEM::MoveEndPointToUi(), EDIT_TOOL::MoveExact(), WS_DATA_ITEM::MoveStartPointTo(), WS_DATA_ITEM::MoveToUi(), SEG::NearestPoint(), ROUTER_TOOL::NeighboringSegmentFilter(), PNS::OctagonalHull(), ACTION_MENU::OnIdle(), KIGFX::WX_VIEW_CONTROLS::onMotion(), DIALOG_NEW_DATAITEM::OnOKClick(), KIGFX::WX_VIEW_CONTROLS::onScroll(), PCB_POINT_EDITOR::OnSelectionChange(), KIGFX::WX_VIEW_CONTROLS::onTimer(), KIGFX::WX_VIEW_CONTROLS::onWheel(), operator *(), VECTOR2< unsigned int >::operator *(), VECTOR2< unsigned int >::operator wxPoint(), VECTOR2< unsigned int >::operator!=(), PNS::JOINT::JOINT_TAG_HASH::operator()(), POLY_GRID_PARTITION::segHash::operator()(), VECTOR2< unsigned int >::operator()(), VECTOR2< unsigned int >::operator+(), VECTOR2< unsigned int >::operator+=(), VECTOR2< unsigned int >::operator-(), VECTOR2< unsigned int >::operator-=(), operator<<(), VECTOR2< unsigned int >::operator=(), VECTOR2< unsigned int >::operator==(), SHAPE_RECT::Outline(), BITMAPCONV_INFO::outputOnePolygon(), EAGLE_PLUGIN::packagePolygon(), COMMON_TOOLS::PanControl(), SHAPE_LINE_CHAIN::Parse(), SHAPE_POLY_SET::Parse(), SCH_SEXPR_PARSER::parseArc(), PAGE_LAYOUT_READER_PARSER::parseBitmap(), PAGE_LAYOUT_READER_PARSER::parseCoordinate(), PAGE_LAYOUT_READER_PARSER::parseGraphic(), PAGE_LAYOUT_READER_PARSER::parsePolygon(), PAGE_LAYOUT_READER_PARSER::parsePolyOutline(), PAGE_LAYOUT_READER_PARSER::parseSetup(), PAGE_LAYOUT_READER_PARSER::parseText(), partitionPolyIntoRegularCellGrid(), DXF_PLOTTER::PenTo(), HPGL_PLOTTER::PenTo(), PS_PLOTTER::PenTo(), PDF_PLOTTER::PenTo(), SVG_PLOTTER::PenTo(), pinEditedCorner(), SYMBOL_EDITOR_DRAWING_TOOLS::PlaceAnchor(), BOARD_EDITOR_CONTROL::PlaceModule(), BOARD_EDITOR_CONTROL::PlaceTarget(), GERBER_PLOTTER::plotArc(), PS_PLOTTER::PlotImage(), PDF_PLOTTER::PlotImage(), DXF_PLOTTER::PlotPoly(), PS_PLOTTER::PlotPoly(), PDF_PLOTTER::PlotPoly(), SVG_PLOTTER::PlotPoly(), PlotWorkSheet(), SHAPE_LINE_CHAIN_BASE::PointInside(), PNS::pointInside2(), POLY_GRID_PARTITION::poly2grid(), POLY_GRID_PARTITION::poly2gridY(), polygon_Convert(), GERBER_DRAW_ITEM::PrintGerberPoly(), WS_DRAW_ITEM_POLYPOLYGONS::PrintWsItem(), processEdge(), SHAPE_LINE_CHAIN::POINT_INSIDE_TRACKER::processVertex(), PNS::SHOVE::pushOrShoveVia(), HPGL_PLOTTER::Rect(), PS_PLOTTER::Rect(), PDF_PLOTTER::Rect(), SVG_PLOTTER::Rect(), PNS::OPTIMIZER::rectBreakouts(), DIALOG_PAD_PROPERTIES::redraw(), PNS::MEANDER_SHAPE::reflect(), RENDER_3D_RAYTRACE::Reload(), FOOTPRINT_PREVIEW_PANEL::renderFootprint(), BOARD_ITEM::Rotate(), RotatePoint(), KIGFX::CAIRO_GAL_BASE::roundp(), CLIPBOARD_IO::SaveSelection(), IMPORTED_LINE::Scale(), IMPORTED_CIRCLE::Scale(), IMPORTED_ARC::Scale(), KIGFX::CAIRO_GAL_BASE::Scale(), KIGFX::OPENGL_GAL::Scale(), IMPORTED_TEXT::Scale(), IMPORTED_SPLINE::Scale(), POLY_GRID_PARTITION::scanCell(), PL_SELECTION_TOOL::selectionContains(), EE_SELECTION_TOOL::selectionContains(), PL_SELECTION_TOOL::selectMultiple(), EE_SELECTION_TOOL::selectMultiple(), PCB_SELECTION_TOOL::selectMultiple(), GERBVIEW_SELECTION_TOOL::selectPoint(), ZOOM_TOOL::selectRegion(), WS_DATA_ITEM_POLYGONS::SetBoundingBox(), KIGFX::VIEW::SetCenter(), KIGFX::CAIRO_GAL::setCompositor(), KIGFX::PREVIEW::SetConstantGlyphHeight(), WS_DATA_ITEM_TEXT::SetConstrainedTextSize(), ZONE::SetCornerPosition(), WS_DATA_ITEM::SetEnd(), KIGFX::GAL::SetGridOrigin(), KIGFX::GAL::SetGridSize(), KIGFX::GAL::SetLayerDepth(), KIGFX::SHADER::SetParameter(), EDIT_POINT::SetPosition(), MATRIX3x3< double >::SetScale(), KIGFX::CAIRO_PRINT_GAL::SetSheetSize(), WS_DATA_ITEM::SetStart(), MATRIX3x3< double >::SetTranslation(), WS_DATA_MODEL::SetupDrawEnvironment(), KIGFX::VIEW::SetViewport(), SHAPE_ARC::SHAPE_ARC(), PNS::shovedArea(), DIALOG_IMPORT_GFX::showPcbImportOffsets(), EDA_DRAW_PANEL_GAL::SwitchBackend(), WS_DATA_ITEM_TEXT::SyncDrawItems(), PNS_KICAD_IFACE_BASE::syncPad(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testZones(), DXF_PLOTTER::Text(), PS_PLOTTER::Text(), SVG_PLOTTER::Text(), DXF_PLOTTER::ThickSegment(), KIGFX::VIEW::ToScreen(), KIGFX::VIEW::ToWorld(), KIGFX::CAIRO_GAL_BASE::Translate(), KIGFX::OPENGL_GAL::Translate(), ALIGNED_DIMENSION::updateGeometry(), DXF_IMPORT_PLUGIN::updateImageLimits(), PCB_POINT_EDITOR::updateItem(), POLYGON_GEOM_MANAGER::updateLeaderPoints(), EE_POINT_EDITOR::updateParentItem(), DIALOG_IMPORT_GFX::updatePcbImportOffsets_mm(), EE_POINT_EDITOR::updatePoints(), PL_POINT_EDITOR::updatePoints(), KIGFX::WX_VIEW_CONTROLS::UpdateScrollbars(), PL_EDITOR_FRAME::UpdateStatusBar(), SCH_BASE_FRAME::UpdateStatusBar(), PCB_BASE_FRAME::UpdateStatusBar(), GERBVIEW_FRAME::UpdateStatusBar(), VECTOR2< unsigned int >::VECTOR2(), KIGFX::VERTEX_MANAGER::Vertex(), PAD::ViewBBox(), KIGFX::ORIGIN_VIEWITEM::ViewDraw(), KIGFX::PREVIEW::TWO_POINT_ASSISTANT::ViewDraw(), KIGFX::WX_VIEW_CONTROLS::WarpCursor(), EDIT_POINT::WithinPoint(), GERBER_PLOTTER::writeApertureList(), HYPERLYNX_EXPORTER::writeNetObjects(), GBR_TO_PCB_EXPORTER::writePcbPolygon(), GBR_TO_PCB_EXPORTER::writePcbZoneItem(), KIGFX::CAIRO_GAL_BASE::xform(), PANEL_PCBNEW_COLOR_SETTINGS::zoomFitPreview(), PANEL_EESCHEMA_COLOR_SETTINGS::zoomFitPreview(), PCB_SELECTION_TOOL::zoomFitSelection(), and DIALOG_IMPORT_GFX::~DIALOG_IMPORT_GFX().


The documentation for this class was generated from the following file: