MCPcopy Index your code
hub / github.com/JoshuaPostel/texaform / contains

Method contains

python/utils.py:73–76  ·  view source on GitHub ↗
(self, point: Point)

Source from the content-addressed store, hash-verified

71 return self.bot_right.x - self.top_left.x
72
73 def contains(self, point: Point) -> bool:
74 x_contained = self.top_left.x <= point.x and point.x <= self.bot_right.x
75 y_contained = self.top_left.y <= point.y and point.y <= self.bot_right.y
76 return x_contained and y_contained
77
78 def random_point_inside(self) -> Point:
79 x = randint(self.top_left.x, self.bot_right.x)

Callers 15

scanMethod · 0.80
storeMethod · 0.80
get_edge_layoutFunction · 0.80
relative_positionFunction · 0.80
manualFunction · 0.80
agent_portMethod · 0.80
is_edgeMethod · 0.80
fmtMethod · 0.80
insertMethod · 0.80
render_refMethod · 0.80
handle_commandMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected