Function get_distance_to_wall_and_closest_point(double2, double2, const double2&)
Defined in File Global.cpp
Function Documentation
-
std::pair<double, double2> get_distance_to_wall_and_closest_point(double2 vertexA, double2 vertexB, const double2 &C)
Calculates the distance to a wall and the closest point on the wall from a given point.
- Parameters:
vertexA -- The first vertex of the wall segment.
vertexB -- The second vertex of the wall segment.
C -- The point for which the distance and closest point are calculated.
- Returns:
A pair containing the distance to the wall and the closest point on the wall.