KiCad PCB EDA Suite
|
#include <tool/construction_manager.h>
Go to the source code of this file.
Functions | |
static bool | pointHasEscapedSnapLineX (const VECTOR2I &aCursor, const VECTOR2I &aSnapLineOrigin, int aEscapeRange, EDA_ANGLE aLongRangeEscapeAngle) |
Check if the cursor has moved far enough away from the snap line origin to escape snapping in the X direction. | |
static bool | pointHasEscapedSnapLineY (const VECTOR2I &aCursor, const VECTOR2I &aSnapLineOrigin, int aEscapeRange, EDA_ANGLE aLongRangeEscapeAngle) |
As above, but for the Y direction. | |
|
static |
Check if the cursor has moved far enough away from the snap line origin to escape snapping in the X direction.
This is defined as within aEscapeRange of the snap line origin, and within aLongRangeEscapeAngle of the vertical line passing through the snap line origin.
Definition at line 227 of file construction_manager.cpp.
References std::abs(), DEGREES_T, EDA_ANGLE::Normalize90(), and VECTOR2< T >::x.
Referenced by CONSTRUCTION_MANAGER::GetNearestSnapLinePoint().
|
static |
As above, but for the Y direction.
Definition at line 241 of file construction_manager.cpp.
References std::abs(), EDA_ANGLE::Normalize90(), and VECTOR2< T >::y.
Referenced by CONSTRUCTION_MANAGER::GetNearestSnapLinePoint().