|
| GeoTransforms () |
| Creates a new instance.
|
|
| GeoTransforms (const CesiumGeospatial::Ellipsoid &ellipsoid, const glm::dvec3 ¢er, double scale) |
| Creates a new instance.
|
|
void | setCenter (const glm::dvec3 ¢er) noexcept |
| Set the center position of this instance.
|
|
void | setEllipsoid (const CesiumGeospatial::Ellipsoid &ellipsoid) noexcept |
| Set the ellipsoid of this instance.
|
|
glm::dvec3 | TransformLongitudeLatitudeHeightToEcef (const glm::dvec3 &LongitudeLatitudeHeight) const noexcept |
| Transforms the given longitude in degrees (x), latitude in degrees (y), and height in meters (z) into Earth-Centered, Earth-Fixed (ECEF) coordinates.
|
|
glm::dvec3 | TransformEcefToLongitudeLatitudeHeight (const glm::dvec3 &Ecef) const noexcept |
| Transforms the given Earth-Centered, Earth-Fixed (ECEF) coordinates into longitude in degrees (x), latitude in degrees (y), and height in meters (z).
|
|
glm::dvec3 | TransformLongitudeLatitudeHeightToUnreal (const glm::dvec3 &origin, const glm::dvec3 &LongitudeLatitudeHeight) const noexcept |
| Transforms the given longitude in degrees (x), latitude in degrees (y), and height in meters (z) into Unreal world coordinates (relative to the floating origin).
|
|
glm::dvec3 | TransformUnrealToLongitudeLatitudeHeight (const glm::dvec3 &origin, const glm::dvec3 &Ue) const noexcept |
| Transforms Unreal world coordinates (relative to the floating origin) into longitude in degrees (x), latitude in degrees (y), and height in meters (z).
|
|
glm::dvec3 | TransformEcefToUnreal (const glm::dvec3 &origin, const glm::dvec3 &Ecef) const noexcept |
| Transforms the given point from Earth-Centered, Earth-Fixed (ECEF) into Unreal world coordinates (relative to the floating origin).
|
|
glm::dvec3 | TransformUnrealToEcef (const glm::dvec3 &origin, const glm::dvec3 &Ue) const noexcept |
| Transforms the given point from Unreal world coordinates (relative to the floating origin) to Earth-Centered, Earth-Fixed (ECEF).
|
|
glm::dquat | TransformRotatorUnrealToEastSouthUp (const glm::dvec3 &origin, const glm::dquat &UeRotator, const glm::dvec3 &UeLocation) const noexcept |
| Transforms a rotator from Unreal world to East-South-Up at the given Unreal relative world location (relative to the floating origin).
|
|
glm::dquat | TransformRotatorEastSouthUpToUnreal (const glm::dvec3 &origin, const glm::dquat &EnuRotator, const glm::dvec3 &UeLocation) const noexcept |
| Transforms a rotator from East-South-Up to Unreal world at the given Unreal world location (relative to the floating origin).
|
|
glm::dmat4 | ComputeEastSouthUpToUnreal (const glm::dvec3 &origin, const glm::dvec3 &Ue) const noexcept |
| Computes the rotation matrix from the local East-South-Up to Unreal at the specified Unreal world location (relative to the floating origin).
|
|
glm::dmat3 | ComputeEastNorthUpToEcef (const glm::dvec3 &Ecef) const noexcept |
| Computes the rotation matrix from the local East-North-Up to Earth-Centered, Earth-Fixed (ECEF) at the specified ECEF location.
|
|
const glm::dmat4 & | GetAbsoluteUnrealWorldToEllipsoidCenteredTransform () const noexcept |
| Gets the transformation from the absolute "Unreal World" reference frame to the "Ellipsoid-centered" reference frame (i.e.
|
|
const glm::dmat4 & | GetEllipsoidCenteredToAbsoluteUnrealWorldTransform () const noexcept |
| Gets the transformation from the "Ellipsoid-centered" reference frame (i.e.
|
|
glm::dvec3 | ComputeGeodeticSurfaceNormal (const glm::dvec3 &position) const |
| Computes the normal of the plane tangent to the surface of the ellipsoid that is used by this instance, at the provided position.
|
|
glm::dquat | ComputeSurfaceNormalRotation (const glm::dvec3 &oldPosition, const glm::dvec3 &newPosition) const |
| Computes the rotation in ellipsoid surface normal between an old position and a new position.
|
|
glm::dquat | ComputeSurfaceNormalRotationUnreal (const glm::dvec3 &oldPosition, const glm::dvec3 &newPosition) const |
| Computes the rotation in ellipsoid surface normal between an old position and a new position.
|
|
const FMatrix & | GetEllipsoidCenteredToAbsoluteUnrealWorldMatrix () const |
|
const FMatrix & | GetAbsoluteUnrealWorldToEllipsoidCenteredMatrix () const |
|
A lightweight structure to encapsulate coordinate transforms.
It encapsulates the conversions between...
- Earth-Centered, Earth-Fixed (ECEF) coordinates
- Georeferenced coordinates (Latitude/Longitude/Height)
- Unreal coordinates (relative to the unreal world origin)
Definition at line 21 of file GeoTransforms.h.
const glm::dmat4 & GeoTransforms::GetEllipsoidCenteredToAbsoluteUnrealWorldTransform |
( |
| ) |
const |
|
inlinenoexcept |
Gets the transformation from the "Ellipsoid-centered" reference frame (i.e.
ECEF) to the absolute "Unreal World" reference frame.
Gets a matrix that transforms coordinates from the "Ellipsoid-centered" reference frame (which is usually Earth-centered, Earth-fixed) to the absolute "Unreal world" reference frame (with respect to the absolute world origin, not the floating origin). See reference-frames.md
.
Definition at line 173 of file GeoTransforms.h.