MCPcopy Create free account
hub / github.com/JoshuaPostel/texaform / random_point_inside

Method random_point_inside

python/utils.py:78–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)
80 y = randint(self.top_left.y, self.bot_right.y)
81 return Point(x, y)
82
83
84

Callers 1

drop_withinMethod · 0.80

Calls 1

PointClass · 0.85

Tested by

no test coverage detected