MCPcopy Index your code
hub / github.com/CadQuery/cadquery / get_angle

Function get_angle

cadquery/hull.py:298–312  ·  view source on GitHub ↗
(current: Entity, e: Entity)

Source from the content-addressed store, hash-verified

296
297
298def get_angle(current: Entity, e: Entity) -> Tuple[float, Segment]:
299
300 if current is e:
301 return inf, Segment(Point(inf, inf), Point(inf, inf))
302
303 if isinstance(current, Point):
304 if isinstance(e, Point):
305 return pt_pt(current, e)
306 else:
307 return pt_arc(current, e)
308 else:
309 if isinstance(e, Point):
310 return arc_pt(current, e)
311 else:
312 return arc_arc(current, e)
313
314
315def update_hull(

Callers 1

find_hullFunction · 0.85

Calls 6

SegmentClass · 0.85
PointClass · 0.85
pt_ptFunction · 0.85
pt_arcFunction · 0.85
arc_ptFunction · 0.85
arc_arcFunction · 0.85

Tested by

no test coverage detected