I have a set of points in 3d. I form a line by joining these points. I have to obtain another line which is a shifted version of this line, such that the resultant shift is
look here: ECEF <-> ENU coordinates this might help
I rather use NEH local North,East,Height(or altitude) coordinate system
North vector is just (0,0,6356754.7)-viewer_position (all in ECEF)East,West vectors can be obtained as North x (0,0,6356754.7)Up vector (Height or Altitude) is easy from this just Up=North x East or Up=North x West[Notes]
South = (0,0,-6356754.7)-viewer_position