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

Function test_start_end

tests/test_shapes.py:480–486  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

478
479
480def test_start_end():
481
482 seg = segment((0, 0), (1, 0))
483 seg_r = seg.reverse()
484
485 assert (seg.startPoint() - seg_r.endPoint()).Length == approx(0)
486 assert (seg.endPoint() - seg_r.startPoint()).Length == approx(0)

Callers

nothing calls this directly

Calls 4

segmentFunction · 0.90
reverseMethod · 0.80
startPointMethod · 0.80
endPointMethod · 0.80

Tested by

no test coverage detected