mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-05 09:02:53 +02:00
Added Edge#euclidian_distance
This commit is contained in:
@@ -555,7 +555,7 @@ struct edge_defs
|
||||
"This method has been introduced in version 0.26.2.\n"
|
||||
) +
|
||||
method ("distance", &C::distance, gsi::arg ("p"),
|
||||
"@brief Distance between the edge and a point.\n"
|
||||
"@brief Gets the distance of the point from the line through the edge.\n"
|
||||
"\n"
|
||||
"Returns the distance between the edge and the point. The \n"
|
||||
"distance is signed which is negative if the point is to the\n"
|
||||
@@ -564,6 +564,11 @@ struct edge_defs
|
||||
"line through the edge. If the edge is degenerated, the distance\n"
|
||||
"is not defined.\n"
|
||||
"\n"
|
||||
"This method considers the edge to define an infinite line running through it.\n"
|
||||
"the distance is the minimum distance of the point to any of the points on this\n"
|
||||
"infinite line. A similar method is \\euclidian_distance, but the latter regards\n"
|
||||
"the edge as a finite set of points between the endpoints.\n"
|
||||
"\n"
|
||||
"@param p The point to test.\n"
|
||||
"\n"
|
||||
"@return The distance\n"
|
||||
@@ -578,6 +583,19 @@ struct edge_defs
|
||||
"\n"
|
||||
"@return The side value\n"
|
||||
) +
|
||||
method ("euclidian_distance", &C::euclidian_distance, gsi::arg ("p"),
|
||||
"@brief Gets the distance of the point from the the edge.\n"
|
||||
"\n"
|
||||
"Returns the minimum distance of the point to any point on the edge.\n"
|
||||
"Unlike \\distance, the edge is considered a finite set of points between\n"
|
||||
"the endpoints. The result is also not signed like it is the case for \\distance.\n"
|
||||
"\n"
|
||||
"This method has been introduced in version 0.28.14.\n"
|
||||
"\n"
|
||||
"@param p The point to test.\n"
|
||||
"\n"
|
||||
"@return The distance\n"
|
||||
) +
|
||||
method ("distance_abs", &C::distance_abs, gsi::arg ("p"),
|
||||
"@brief Absolute distance between the edge and a point.\n"
|
||||
"\n"
|
||||
|
||||
Reference in New Issue
Block a user