MCPcopy Index your code
hub / github.com/CadQuery/cadquery / testDot

Method testDot

tests/test_cad_objects.py:295–298  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

293 self.assertTupleAlmostEquals((0.0, 0.0, 0.25), s.val().Center().toTuple(), 3)
294
295 def testDot(self):
296 v1 = Vector(2, 2, 2)
297 v2 = Vector(1, -1, 1)
298 self.assertEqual(2.0, v1.dot(v2))
299
300 def testVectorAdd(self):
301 result = Vector(1, 2, 0) + Vector(0, 0, 3)

Callers

nothing calls this directly

Calls 2

dotMethod · 0.95
VectorClass · 0.85

Tested by

no test coverage detected