MCPcopy Create free account
hub / github.com/Prograda/Skybolt / getPositionLla

Function getPositionLla

src/Skybolt/SkyboltPythonBindings/PythonBindings.cpp:248–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248static std::optional<LatLonAlt> getPositionLla(const Entity& entity)
249{
250 std::optional<Vector3> position = getPosition(entity);
251 if (!position) { return std::nullopt; }
252
253 return toLatLonAlt(GeocentricPosition(*position)).position;
254}
255
256static void setPositionLla(Entity& entity, const LatLonAlt& lla)
257{

Callers 1

PYBIND11_MODULEFunction · 0.85

Calls 3

getPositionFunction · 0.85
GeocentricPositionClass · 0.85
toLatLonAltFunction · 0.50

Tested by

no test coverage detected