cesium-native  0.41.0
CesiumGeospatial::GlobeTransforms Class Referencefinal

Transforms between globe-related coordinate systems. More...

#include <CesiumGeospatial/GlobeTransforms.h>

Static Public Member Functions

static glm::dmat4x4 eastNorthUpToFixedFrame (const glm::dvec3 &origin, const Ellipsoid &ellipsoid CESIUM_DEFAULT_ELLIPSOID) noexcept
 Computes a transformation from east-north-up axes to an ellipsoid-fixed reference frame. More...
 

Detailed Description

Transforms between globe-related coordinate systems.

Definition at line 14 of file GlobeTransforms.h.

Member Function Documentation

◆ eastNorthUpToFixedFrame()

static glm::dmat4x4 CesiumGeospatial::GlobeTransforms::eastNorthUpToFixedFrame ( const glm::dvec3 &  origin,
const Ellipsoid &ellipsoid  CESIUM_DEFAULT_ELLIPSOID 
)
staticnoexcept

Computes a transformation from east-north-up axes to an ellipsoid-fixed reference frame.

Computes a 4x4 transformation matrix from a reference frame with an east-north-up axes centered at the provided origin to the provided ellipsoid's fixed reference frame. The local axes are defined as:

  • The x axis points in the local east direction.
  • The y axis points in the local north direction.
  • The z axis points in the direction of the ellipsoid surface normal which passes through the position.
Parameters
originThe center point of the local reference frame.
ellipsoidThe Ellipsoid whose fixed frame is used in the transformation. Default value: Ellipsoid::WGS84.
Returns
The transformation matrix

The documentation for this class was generated from the following file: