Navigation
API > API/Plugins > API/Plugins/CelestialVault > API/Plugins/CelestialVault/UCelestialMaths
Description
Return the Transformation to apply to a WGS84 Ellipsoid model so that its location in Lat,long,Altitude is tangent to the Origin It's used to locate the Rotating Celestial Vault for a specific UE Origin The Transform is expressed in the UE Frame (Location units are UE Units, left-handed Unreal Frame)
With Geocentric=true, the observer is expected to be at the Earth center, Latitude/longitude are ignored and this function returns an ECEF-Oriented transform.
| Name | GetEarthCenterTransformUEFrame |
| Type | function |
| Header File | /Engine/Plugins/Runtime/CelestialVault/Source/CelestialVault/Public/CelestialMaths.h |
| Include Path | #include "CelestialMaths.h" |
| Source | /Engine/Plugins/Runtime/CelestialVault/Source/CelestialVault/Private/CelestialMaths.cpp |
UFUNCTION (BlueprintCallable, Category="Celestial Vault|Earth")
static FTransform GetEarthCenterTransformUEFrame
(
double Latitude,
double Longitude,
double Altitude,
bool Geocentric
)