Geometric transformations in 3D and coordinate frames