| 
    KiCad PCB EDA Suite
    
   | 
 
EDIT_CONSTRAINT that imposes a constraint that a point has to lie on a circle. More...
#include <edit_constraints.h>
  
Public Member Functions | |
| EC_CIRCLE (EDIT_POINT &aConstrained, const EDIT_POINT &aCenter, const EDIT_POINT &aEnd) | |
| virtual void | Apply (EDIT_POINT &aHandle, const GRID_HELPER &aGrid) override | 
| Correct coordinates of the constrained edit handle.      | |
| void | Apply (const GRID_HELPER &aGrid) | 
| Correct coordinates of the constrained edit handle.   | |
Protected Attributes | |
| EDIT_POINT & | m_constrained | 
| Point that is constrained by rules implemented by Apply().   | |
Private Attributes | |
| const EDIT_POINT & | m_center | 
| Point that imposes the constraint (center of the circle).   | |
| const EDIT_POINT & | m_end | 
| Point that imposes the constraint (decides on the radius of the circle).   | |
EDIT_CONSTRAINT that imposes a constraint that a point has to lie on a circle.
Definition at line 209 of file edit_constraints.h.
      
  | 
  inline | 
| aConstrained | is the point that is put under constrain. | 
| aCenter | is the point that is the center of the circle. | 
| aEnd | is the point that decides on the radius of the circle. | 
Definition at line 217 of file edit_constraints.h.
References EDIT_CONSTRAINT< EDIT_POINT >::EDIT_CONSTRAINT(), m_center, and m_end.
      
  | 
  overridevirtual | 
Correct coordinates of the constrained edit handle.
Implements EDIT_CONSTRAINT< EDIT_POINT >.
Definition at line 133 of file edit_constraints.cpp.
References VECTOR2< T >::EuclideanNorm(), EDIT_POINT::GetPosition(), m_center, m_end, radius, RotatePoint(), and EDIT_POINT::SetPosition().
      
  | 
  inlineinherited | 
Correct coordinates of the constrained edit handle.
Definition at line 82 of file edit_constraints.h.
      
  | 
  private | 
Point that imposes the constraint (center of the circle).
Definition at line 228 of file edit_constraints.h.
Referenced by Apply(), and EC_CIRCLE().
      
  | 
  protectedinherited | 
Point that is constrained by rules implemented by Apply().
Definition at line 88 of file edit_constraints.h.
Referenced by EC_LINE::EC_LINE().
      
  | 
  private | 
Point that imposes the constraint (decides on the radius of the circle).
Definition at line 231 of file edit_constraints.h.
Referenced by Apply(), and EC_CIRCLE().