def testCross(self):
        self.assertEqual(UNIT_X.cross(UNIT_Y), UNIT_Z)
        self.assertEqual(UNIT_Y.cross(UNIT_Z), UNIT_X)
        self.assertEqual(UNIT_Z.cross(UNIT_X), UNIT_Y)

        self.assertEqual(UNIT_X.cross((0,1,0)), UNIT_Z)
        self.assertEqual(UNIT_X.cross(np.array((0,1,0), dtype=np.float)), UNIT_Z)
    def testCross(self):
        self.assertEqual(UNIT_X.cross(UNIT_Y), UNIT_Z)
        self.assertEqual(UNIT_Y.cross(UNIT_Z), UNIT_X)
        self.assertEqual(UNIT_Z.cross(UNIT_X), UNIT_Y)

        self.assertEqual(UNIT_X.cross((0,1,0)), UNIT_Z)
        self.assertEqual(UNIT_X.cross(np.array((0,1,0), dtype=np.float)), UNIT_Z)
Exemplo n.º 3
0
 def testCross(self):
     self.assertEqual(UNIT_X.cross(UNIT_Y), UNIT_Z)
     self.assertEqual(UNIT_Y.cross(UNIT_Z), UNIT_X)
     self.assertEqual(UNIT_Z.cross(UNIT_X), UNIT_Y)
Exemplo n.º 4
0
 def testCross(self):
     self.assertEqual(UNIT_X.cross(UNIT_Y), UNIT_Z)
     self.assertEqual(UNIT_Y.cross(UNIT_Z), UNIT_X)
     self.assertEqual(UNIT_Z.cross(UNIT_X), UNIT_Y)