MCPcopy
hub / github.com/CadQuery/cadquery / pt_pt

Function pt_pt

cadquery/hull.py:170–179  ·  view source on GitHub ↗
(p1: Point, p2: Point)

Source from the content-addressed store, hash-verified

168
169
170def pt_pt(p1: Point, p2: Point) -> Tuple[float, Segment]:
171
172 angle = 0
173
174 dx, dy = p2.x - p1.x, p2.y - p1.y
175
176 if (dx, dy) != (0, 0):
177 angle = atan2p(dx, dy)
178
179 return angle, Segment(p1, p2)
180
181
182def _pt_arc(p: Point, a: Arc) -> Tuple[float, float, float, float]:

Callers

nothing calls this directly

Calls 2

atan2pFunction · 0.85
SegmentClass · 0.85

Tested by

no test coverage detected