closest_point_on_segment
- compas.geometry.closest_point_on_segment(point, segment)[source]
Computes closest point on line segment (p1, p2) to test point.
- Parameters
- Returns
[float, float, float] – XYZ coordinates of closest point.
Examples
>>>
Computes closest point on line segment (p1, p2) to test point.
[float, float, float] – XYZ coordinates of closest point.
Examples
>>>
A computational framework for collaboration and research in Architecture, Engineering, Fabrication, and Construction.
Copyright © 2017-2021 compas-dev