Some of 3D math functions