MCPcopy Create free account
hub / github.com/NanoComp/meep / test_cdot

Method test_cdot

python/tests/test_geom.py:449–453  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

447 self.assertEqual(v1.cross(v2), mp.Vector3(1, -1, 1))
448
449 def test_cdot(self):
450 complex_vec1 = mp.Vector3(complex(1, 1), complex(1, 1), complex(1, 1))
451 complex_vec2 = mp.Vector3(complex(2, 2), complex(2, 2), complex(2, 2))
452
453 self.assertEqual(complex_vec1.cdot(complex_vec2), 12 + 0j)
454
455 def test_rotate(self):
456 axis = mp.Vector3(z=1)

Callers

nothing calls this directly

Calls 1

cdotMethod · 0.95

Tested by

no test coverage detected