Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Fields2Cover/Fields2Cover
/ near
Function
near
tests/python/utils/random_test.py:12–13 ·
view source on GitHub ↗
(a, b, error = 1e-7)
Source
from the content-addressed store, hash-verified
10
import
numpy
as
np
11
12
def
near(a, b, error = 1e-7):
13
assert abs(a - b) < error
14
15
16
def
create_polygons_test():
Callers
8
test_fields2cover_utils_GeometryOp_getDims
Function · 0.70
test_fields2cover_utils_random_getRandomDouble
Function · 0.70
test_fields2cover_utils_random_getAngleDiffAbs
Function · 0.70
test_fields2cover_utils_GeometryOp_getAngleFromPoints
Function · 0.70
test_fields2cover_utils_GeometryOp_getPointFromAngle
Function · 0.70
test_fields2cover_utils_GeometryOp_getLinesInPolygons
Function · 0.70
test_fields2cover_utils_GeometryOp_mod2pi
Function · 0.70
test_fields2cover_utils_GeometryOp_rotateFromPoint
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected