How to use the vector.closest_point_on_line function in vector

To help you get started, we’ve selected a few vector examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github irskep / Space-Train / engine / util / walkpath.py View on Github external
def closest_edge_point_to_point(self, edge, point):
        return vector.closest_point_on_line(point, self.points[edge.a], self.points[edge.b])
github irskep / Space-Train / engine / util / walkpath.py View on Github external
def closest_edge_point_to_point(self, edge, point):
        return vector.closest_point_on_line(point, self.points[edge.a], self.points[edge.b])