EDA_RECT is a class in the PCBNEW library of the KiCad EDA software package. It represents a rectangular shape in the layout of a printed circuit board.
Here are some code examples using the EDA_RECT class:
1) Create an EDA_RECT object with (x,y) coordinates of top-left corner and width and height dimensions:
EDA_RECT my_rect(10, 20, 30, 40);
2) Move the EDA_RECT object by a given offset in x and y directions:
my_rect.Move(wxPoint(5, -5));
3) Check if an EDA_RECT object contains a given point:
These examples demonstrate the usage of EDA_RECT class for creating, moving and checking containment of a rectangular shape.
C++ (Cpp) EDA_RECT - 30 examples found. These are the top rated real world C++ (Cpp) examples of EDA_RECT extracted from open source projects. You can rate examples to help us improve the quality of examples.