如何计算LineString的角度范围

时间:2019-05-07 11:25:24

标签: python-3.x geometry shapely.geometry

鉴于我从shapely.geometry获得了LineString,我该如何计算它的角度范围?我想将角度范围定义为(orientation_deg, rotation_deg - counter clock wise)

的元组

通过角度范围是指可见区域,例如

path = LineString(Point(0, 0), Point(1, 1), Point(1, 0))
computeAngleScope(path) # should output AngleScope(orientation_deg=45, rotation_deg=-45) since if one starts at (0, 0) they'll be able to see the segment of (0, 45) degrees.

0 个答案:

没有答案