Skip to content

Commit

Permalink
Update calculate_angle
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderJuestel committed Jan 3, 2025
1 parent 2d171e4 commit 01ddde2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions gemgis/vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -5308,23 +5308,25 @@ def remove_interfaces_within_fault_buffers(


def calculate_angle(linestring: shapely.geometry.linestring.LineString) -> float:
"""Calculating the angle of a LineString to the vertical
"""Calculating the angle of a LineString to the vertical.
Parameters
__________
linestring : shapely.geometry.linestring.LineString
Shapely LineString consisting of two vertices,
e.g. ``linestring = LineString([(0, 0), (10, 10), (20, 20)])``
e.g. ``linestring = LineString([(0, 0), (10, 10), (20, 20)])``.
Returns
_______
angle : float
Angle of a LineString to the vertical
Angle of a LineString to the vertical.
.. versionadded:: 1.0.x
.. versionupdated:: 1.2
Example
_______
Expand All @@ -5351,7 +5353,7 @@ def calculate_angle(linestring: shapely.geometry.linestring.LineString) -> float
Note
____
The LineString must only consist of two points (start and end point)
The LineString must only consist of two points (start and end point).
"""

Expand Down

0 comments on commit 01ddde2

Please sign in to comment.