fixed 3dtransform bugs, still not the same as numpy...