鉴于我从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.