Improve layout of comment

Modify the layout of the comment to improve readability.
Now each sentence starts on a new line.
This commit is contained in:
digitalfrost 2022-07-23 23:19:20 +02:00 committed by GitHub
parent 9221c3e21e
commit 1bf330df66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -226,10 +226,9 @@ class LayerPolygon:
normals[:, 1] = 0.0 # We are only interested in 2D normals
# Calculate the edges between points.
# The call to numpy.roll shifts the entire array by one so that
# we end up subtracting each next point from the current, wrapping
# around. This gives us the edges from the next point to the current
# point.
# The call to numpy.roll shifts the entire array by one
# so that we end up subtracting each next point from the current, wrapping around.
# This gives us the edges from the next point to the current point.
normals = numpy.diff(normals, 1, 0)
# Calculate the length of each edge using standard Pythagoras