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

Class Point

cadquery/hull.py:22–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21
22class Point:
23
24 x: float
25 y: float
26
27 def __init__(self, x: float, y: float):
28
29 self.x = x
30 self.y = y
31
32 def __repr__(self):
33
34 return f"( {self.x},{self.y} )"
35
36 def __hash__(self):
37
38 return hash((self.x, self.y))
39
40 def __eq__(self, other):
41
42 return (self.x, self.y) == (other.x, other.y)
43
44
45class Segment:

Callers 7

__init__Method · 0.85
convert_and_validateFunction · 0.85
select_lowest_arcFunction · 0.85
pt_arcFunction · 0.85
arc_ptFunction · 0.85
arc_arcFunction · 0.85
get_angleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected