add getter for LocalCoord transformation matrices

old-commit-hash: 29262db5d63f0e5d65c2f00d4929991fb2e0d848
This commit is contained in:
Willem Melching
2020-06-10 11:35:45 -07:00
parent 0f9202c4b7
commit fe4fb82b5d
3 changed files with 20 additions and 2 deletions
@@ -120,6 +120,22 @@ cdef class LocalCoord:
elif ecef is not None:
self.lc = new LocalCoord_c(list2ecef(ecef))
@property
def ned2ecef_matrix(self):
return matrix2numpy(self.lc.ned2ecef_matrix)
@property
def ecef2ned_matrix(self):
return matrix2numpy(self.lc.ecef2ned_matrix)
@property
def ned_from_ecef_matrix(self):
return self.ecef2ned_matrix
@property
def ecef_from_ned_matrix(self):
return self.ned2ecef_matrix
@classmethod
def from_geodetic(cls, geodetic):
return cls(geodetic=geodetic)