|
KiCad PCB EDA Suite
|
A point as used by the various IDF related classes. More...
#include <idf_common.h>
Public Member Functions | |
| IDF_POINT () | |
| IDF_POINT (double aX, double aY) | |
| bool | Matches (const IDF_POINT &aPoint, double aRadius=1e-5) const |
| Return true if the given coordinate point is within the given radius of the point. | |
| double | CalcDistance (const IDF_POINT &aPoint) const |
| Return the Euclidean distance between this point and the given point. | |
Public Attributes | |
| double | x |
| double | y |
A point as used by the various IDF related classes.
Definition at line 425 of file idf_common.h.
|
inline |
Definition at line 428 of file idf_common.h.
Referenced by CalcDistance(), and Matches().
|
inline |
Definition at line 434 of file idf_common.h.
| double IDF_POINT::CalcDistance | ( | const IDF_POINT & | aPoint | ) | const |
Return the Euclidean distance between this point and the given point.
| aPoint | is the coordinates of the point whose distance is to be determined. |
Definition at line 810 of file idf_common.cpp.
References IDF_POINT(), x, and y.
Referenced by IDF_SEGMENT::IDF_SEGMENT().
| bool IDF_POINT::Matches | ( | const IDF_POINT & | aPoint, |
| double | aRadius = 1e-5 ) const |
Return true if the given coordinate point is within the given radius of the point.
| aPoint | is the coordinates of the point being compared. |
| aRadius | is the radius (mm) within which the points are considered the same. |
Definition at line 796 of file idf_common.cpp.
References IDF_POINT(), x, and y.
Referenced by IDF_DRILL_DATA::Matches(), and BOARD_OUTLINE::readOutlines().
| double IDF_POINT::x |
Definition at line 457 of file idf_common.h.
Referenced by addSegment(), IDF3_BOARD::AddSlot(), IDF3::CalcAngleRad(), CalcDistance(), IDF3_COMP_OUTLINE::CreateDefaultOutline(), idf_append_shape(), idf_export_outline(), IDF_POINT(), IDF_POINT(), IDF_DRILL_DATA::Matches(), Matches(), IDF_OUTLINE::push(), BOARD_OUTLINE::readOutlines(), and BOARD_OUTLINE::writeOutline().
| double IDF_POINT::y |
Definition at line 458 of file idf_common.h.
Referenced by addSegment(), IDF3_BOARD::AddSlot(), IDF3::CalcAngleRad(), CalcDistance(), IDF3_COMP_OUTLINE::CreateDefaultOutline(), idf_append_shape(), idf_export_outline(), IDF_POINT(), IDF_POINT(), IDF_DRILL_DATA::Matches(), Matches(), IDF_OUTLINE::push(), BOARD_OUTLINE::readOutlines(), and BOARD_OUTLINE::writeOutline().