Contains types and helper functions relating to coordinate space manipulation. More...
Namespaces | |
namespace | CubeMap |
Types and helper functions relating to projecting Earth sphere to and from a cube. | |
namespace | SpaceHelpers |
Helper functions for coordinate conversion operations. | |
Classes | |
class | EarthConstants |
Physical constants for Earth. More... | |
class | EcefTangentBasis |
Defines an orthogonal coordindate basis in ECEF space. More... | |
class | IndoorGeoreferencer |
class | LatLong |
class | LatLongAltitude |
class | WeightedLatLongAltitude |
Contains types and helper functions relating to coordinate space manipulation.
|
inline |
Convert an Ecef position to LatLongAltitude
x | Ecef x coordinate |
y | Ecef y coordinate |
z | Ecef z coordinate |
|
inline |
Convert an Ecef position to LatLongAltitude
ecefPosition | The Ecef position to be converted |
|
inline |
Convert latitude, longitude and altitude to Ecef
latitudeInRadians | The latitude in radians |
longitudeInRadians | The longitude in radians |
altitudeInMetres | The altitude in metres |
|
inline |
Convert a LatLongAltitude instance to Ecef
latLongAltitude | The LatLongAltitude to be converted |
|
inline |
Convert a LatLongAltitude instance to MortonKey
latLongAltitude | The LatLongAltitude to be converted |
level | The cubemap level for which the morton key is to be computed |
v3 Eegeo::Space::ConvertLatLongAltitudeToScreenCoordinates | ( | const LatLongAltitude & | latLongAltitude, |
const Eegeo::Camera::RenderCamera & | renderCamera, | ||
const Eegeo::Rendering::ScreenProperties & | screenProperties | ||
) |
Convert a lat long altitude to Screen Space pixel coordinates.
latLongAltitude | the lat long altitude to be converted |
renderCamera | the render camera |
screenProperties | the screen properties |
|
inline |
Convert a MortonKey centre to ECEF
key | The morton key whose center is to be converted to ECEF |
double Eegeo::Space::DistanceInMetresBetweenEcefPoints | ( | const Eegeo::dv3 & | ecefPointA, |
const Eegeo::dv3 & | ecefPointB | ||
) |
Calculates the Euclidean distance in metres between two Ecef points.
ecefPointA | The first Ecef point |
ecefPointB | The second Ecef point |
bool Eegeo::Space::TryConvertScreenCoordinatesToLatLongAltitude | ( | int | screenPixelCoordinateX, |
int | screenPixelCoordinateY, | ||
const Eegeo::Camera::RenderCamera & | renderCamera, | ||
const Eegeo::Resources::Terrain::Heights::TerrainHeightProvider & | terrainHeightProvider, | ||
LatLongAltitude & | result | ||
) |
Try to convert screen space pixel coordinates into a lat long altitude.
screenPixelCoordinateX | the x pixel coordinate |
screenPixelCoordinateY | the y pixel coordinate |
renderCamera | render camera |
terrainHeightProvider | the terrain height provider |
result | reference to a LatLongAltitude instance that, when a conversion is possible, will be filled out with the result. Check the return value to determine whether this result is valid. |