示例#1
0
    def test_to_matrix(self):
        # Default value should be identity
        rot_d = Rotation('d')
        numpy.testing.assert_array_equal(rot_d.matrix(), numpy.eye(3))

        rot_f = Rotation('f')
        numpy.testing.assert_array_equal(rot_f.matrix(), numpy.eye(3))
示例#2
0
    def test_to_matrix(self):
        # Default value should be identity
        rot_d = Rotation(ctypes.c_double)
        numpy.testing.assert_array_equal(rot_d.matrix(), numpy.eye(3))

        rot_f = Rotation(ctypes.c_float)
        numpy.testing.assert_array_equal(rot_f.matrix(), numpy.eye(3))
示例#3
0
    def test_to_matrix(self):
        # Default value should be identity
        rot_d = Rotation('d')
        numpy.testing.assert_array_equal(
            rot_d.matrix(), numpy.eye(3)
        )

        rot_f = Rotation('f')
        numpy.testing.assert_array_equal(
            rot_f.matrix(), numpy.eye(3)
        )
示例#4
0
    def test_to_matrix(self):
        # Default value should be identity
        rot_d = Rotation(ctypes.c_double)
        numpy.testing.assert_array_equal(
            rot_d.matrix(), numpy.eye(3)
        )

        rot_f = Rotation(ctypes.c_float)
        numpy.testing.assert_array_equal(
            rot_f.matrix(), numpy.eye(3)
        )