edge_normals#

iskra.geometry.normals.edge_normals(edges: Tensor) Tensor[SOURCE]#

Normals of line segments in 2D.

Parameters:

edges (Tensor[Float, [Bs, 2, 2]]) – Line segments in 2D; second to last dimension is the end points, last is the coordinates.

Returns:

(Tensor[Float, [Bs, 2]]) – Normal vectors of each line segment.