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

Class Arc

cadquery/hull.py:56–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55
56class Arc:
57
58 c: Point
59 s: Point
60 e: Point
61 r: float
62 a1: float
63 a2: float
64 ac: float
65
66 def __init__(self, c: Point, r: float, a1: float, a2: float):
67
68 self.c = c
69 self.r = r
70 self.a1 = a1
71 self.a2 = a2
72
73 self.s = Point(r * cos(a1), r * sin(a1))
74 self.e = Point(r * cos(a2), r * sin(a2))
75 self.ac = 2 * pi - (a1 - a2)
76
77
78def atan2p(x, y):

Callers 2

convert_and_validateFunction · 0.85
arc_arcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected