convert from geodetic coordinates (ECEF) to local ENU
How to convert X,Y,Z from local reference (ENU) to world reference (ECEF) and reverse it ??

Input: (lat,long) = center of the local reference system.
       x,y,z = position of the point,in local system reference.
Output: (lat,long)= poistion of the point in WGS84.
Also: reverse coordinate.

I suppose the step is:

1) convert Xlocal,Ylocal,Zlocal  -> Xecef,Yecef,Zecef

2) convert Xecef,Yecef,Zecef     -> Lat,Long (WGS84)


And than


1) convert Lat,Long(WGS84)       -> Xecef,Yecef,Zecef

2) convert Xecef,Yecef,Zecef     -> Xlocal,Ylocal,Zlocal


Thanks all!!!
convert from geodetic coordinates (ECEF) to local ENU
===

How to convert X,Y,Z from local reference (ENU) to world reference (ECEF) and reverse it ??

Input: (lat,long) = center of the local reference system.
       x,y,z = position of the point,in local system reference.
Output: (lat,long)= poistion of the point in WGS84.
Also: reverse coordinate.

I suppose the step is:

1) convert Xlocal,Ylocal,Zlocal  -> Xecef,Yecef,Zecef

2) convert Xecef,Yecef,Zecef     -> Lat,Long (WGS84)


And than


1) convert Lat,Long(WGS84)       -> Xecef,Yecef,Zecef

2) convert Xecef,Yecef,Zecef     -> Xlocal,Ylocal,Zlocal


Thanks all!!!