Cesium for Unreal 2.12.0
Loading...
Searching...
No Matches
UCesiumEllipsoid Class Reference

#include <CesiumEllipsoid.h>

Inheritance diagram for UCesiumEllipsoid:

Public Member Functions

FVector GetRadii ()
 Gets the radii of the ellipsoid in its x-, y-, and z-directions in meters.
 
void SetRadii (const FVector &NewRadii)
 Sets the radii of this ellipsoid in its x-, y-, and z-directions in meters.
 
double GetMaximumRadius ()
 Gets the maximum radius of the ellipsoid in any dimension, in meters.
 
double GetMinimumRadius ()
 Gets the minimum radius of the ellipsoid in any dimension, in meters.
 
FVector ScaleToGeodeticSurface (const FVector &EarthCenteredEarthFixedPosition)
 Scale the given Ellipsoid-Centered, Ellipsoid-Fixed position along the geodetic surface normal so that it is on the surface of the ellipsoid.
 
FVector GeodeticSurfaceNormal (const FVector &EarthCenteredEarthFixedPosition)
 Computes the normal of the plane tangent to the surface of the ellipsoid at the provided Ellipsoid-Centered, Ellipsoid-Fixed position.
 
FVector LongitudeLatitudeHeightToEllipsoidCenteredEllipsoidFixed (const FVector &LongitudeLatitudeHeight)
 Convert longitude in degrees (X), latitude in degrees (Y), and height above the ellipsoid in meters (Z) to Ellipsoid-Centered, Ellipsoid-Fixed (ECEF) coordinates.
 
FVector EllipsoidCenteredEllipsoidFixedToLongitudeLatitudeHeight (const FVector &EarthCenteredEarthFixedPosition)
 Convert Ellipsoid-Centered, Ellipsoid-Fixed (ECEF) coordinates to longitude in degrees (X), latitude in degrees (Y), and height above the ellipsoid in meters (Z).
 
FMatrix EastNorthUpToEllipsoidCenteredEllipsoidFixed (const FVector &EarthCenteredEarthFixedPosition)
 Computes the transformation matrix from the local East-North-Up (ENU) frame to Ellipsoid-Centered, Ellipsoid-Fixed (ECEF) at the specified ECEF location.
 
CesiumGeospatial::LocalHorizontalCoordinateSystem CreateCoordinateSystem (const FVector &Center, double Scale)
 Returns a new CesiumGeospatial::LocalHorizontalCoordinateSystem with the given scale, center, and ellipsoid.
 
const CesiumGeospatial::EllipsoidGetNativeEllipsoid ()
 Returns the underlying CesiumGeospatial::Ellipsoid.
 

Static Public Member Functions

static UCesiumEllipsoidCreate (const FVector &Radii)
 Creates a new UCesiumEllipsoid with the given radii.
 

Protected Attributes

FVector Radii
 The radii of this ellipsoid.
 

Detailed Description

Definition at line 15 of file CesiumEllipsoid.h.

Member Function Documentation

◆ Create()

static UCesiumEllipsoid * UCesiumEllipsoid::Create ( const FVector & Radii)
static

Creates a new UCesiumEllipsoid with the given radii.

This is equivalent to

auto ellipsoid = NewObject<UCesiumEllipsoid>();
ellipsoid->SetRadii(Radii);
FVector Radii
The radii of this ellipsoid.

◆ CreateCoordinateSystem()

CesiumGeospatial::LocalHorizontalCoordinateSystem UCesiumEllipsoid::CreateCoordinateSystem ( const FVector & Center,
double Scale )

Returns a new CesiumGeospatial::LocalHorizontalCoordinateSystem with the given scale, center, and ellipsoid.

◆ EastNorthUpToEllipsoidCenteredEllipsoidFixed()

FMatrix UCesiumEllipsoid::EastNorthUpToEllipsoidCenteredEllipsoidFixed ( const FVector & EarthCenteredEarthFixedPosition)

Computes the transformation matrix from the local East-North-Up (ENU) frame to Ellipsoid-Centered, Ellipsoid-Fixed (ECEF) at the specified ECEF location.

◆ EllipsoidCenteredEllipsoidFixedToLongitudeLatitudeHeight()

FVector UCesiumEllipsoid::EllipsoidCenteredEllipsoidFixedToLongitudeLatitudeHeight ( const FVector & EarthCenteredEarthFixedPosition)

Convert Ellipsoid-Centered, Ellipsoid-Fixed (ECEF) coordinates to longitude in degrees (X), latitude in degrees (Y), and height above the ellipsoid in meters (Z).

If the position is near the center of the Ellipsoid, the result will have the value (0,0,0) because the longitude, latitude, and height are undefined.

◆ GeodeticSurfaceNormal()

FVector UCesiumEllipsoid::GeodeticSurfaceNormal ( const FVector & EarthCenteredEarthFixedPosition)

Computes the normal of the plane tangent to the surface of the ellipsoid at the provided Ellipsoid-Centered, Ellipsoid-Fixed position.

◆ GetMaximumRadius()

double UCesiumEllipsoid::GetMaximumRadius ( )

Gets the maximum radius of the ellipsoid in any dimension, in meters.

◆ GetMinimumRadius()

double UCesiumEllipsoid::GetMinimumRadius ( )

Gets the minimum radius of the ellipsoid in any dimension, in meters.

◆ GetNativeEllipsoid()

const CesiumGeospatial::Ellipsoid & UCesiumEllipsoid::GetNativeEllipsoid ( )

Returns the underlying CesiumGeospatial::Ellipsoid.

◆ GetRadii()

FVector UCesiumEllipsoid::GetRadii ( )

Gets the radii of the ellipsoid in its x-, y-, and z-directions in meters.

◆ LongitudeLatitudeHeightToEllipsoidCenteredEllipsoidFixed()

FVector UCesiumEllipsoid::LongitudeLatitudeHeightToEllipsoidCenteredEllipsoidFixed ( const FVector & LongitudeLatitudeHeight)

Convert longitude in degrees (X), latitude in degrees (Y), and height above the ellipsoid in meters (Z) to Ellipsoid-Centered, Ellipsoid-Fixed (ECEF) coordinates.

◆ ScaleToGeodeticSurface()

FVector UCesiumEllipsoid::ScaleToGeodeticSurface ( const FVector & EarthCenteredEarthFixedPosition)

Scale the given Ellipsoid-Centered, Ellipsoid-Fixed position along the geodetic surface normal so that it is on the surface of the ellipsoid.

If the position is near the center of the ellipsoid, the result will have the value (0,0,0) because the surface position is undefined.

◆ SetRadii()

void UCesiumEllipsoid::SetRadii ( const FVector & NewRadii)

Sets the radii of this ellipsoid in its x-, y-, and z-directions in meters.

Tilesets using this ellipsoid may have to be refreshed to see the changes applied.

Member Data Documentation

◆ Radii

FVector UCesiumEllipsoid::Radii
protected

The radii of this ellipsoid.

The X coordinate of the vector should be the radius of the largest axis and the Z coordinate should be the radius of the smallest axis.

Definition at line 139 of file CesiumEllipsoid.h.


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