warp.closest_point_edge_edge#
- warp.closest_point_edge_edge( ) vec3f#
Kernel
Differentiable
Find the closest points between two edges.
- Parameters:
p1 – First point of first edge
q1 – Second point of first edge
p2 – First point of second edge
q2 – Second point of second edge
epsilon – Zero tolerance for determining if points in an edge are degenerate.
out – vec3 output containing (s,t,d), where
sin [0,1] is the barycentric weight for the first edge,tis the barycentric weight for the second edge, anddis the distance between the two edges at these two closest points.
- Returns:
Barycentric weights to the points on each edge, as well as the closest distance between the edges.