A coordinate system created from a local horizontal plane at a particular origin point on the globe.
More...
|
| LocalHorizontalCoordinateSystem (const Cartographic &origin, LocalDirection xAxisDirection=LocalDirection::East, LocalDirection yAxisDirection=LocalDirection::North, LocalDirection zAxisDirection=LocalDirection::Up, double scaleToMeters=1.0, const Ellipsoid &ellipsoid=CesiumGeospatial::Ellipsoid::WGS84) |
| Create a new coordinate system centered at a given longitude, latitude, and ellipsoidal height. More...
|
|
| LocalHorizontalCoordinateSystem (const glm::dvec3 &originEcef, LocalDirection xAxisDirection=LocalDirection::East, LocalDirection yAxisDirection=LocalDirection::North, LocalDirection zAxisDirection=LocalDirection::Up, double scaleToMeters=1.0, const Ellipsoid &ellipsoid=CesiumGeospatial::Ellipsoid::WGS84) |
| Create a new coordinate system centered at a Earth-Centered, Earth-Fixed position. More...
|
|
| LocalHorizontalCoordinateSystem (const glm::dmat4 &localToEcef) |
| Create a new coordinate system with a specified transformation to the Earth-Centered, Earth-Fixed frame. This is an advanced constructor and should be avoided in most cases. More...
|
|
| LocalHorizontalCoordinateSystem (const glm::dmat4 &localToEcef, const glm::dmat4 &ecefToLocal) |
| Create a new coordinate system with the specified transformations between the local frame and the Earth-Centered, Earth-Fixed frame. This is an advanced constructor and should be avoided in most cases. More...
|
|
const glm::dmat4 & | getLocalToEcefTransformation () const noexcept |
| Gets the transformation matrix from the local horizontal coordinate system managed by this instance to the Earth-Centered, Earth-fixed coordinate system. More...
|
|
const glm::dmat4 & | getEcefToLocalTransformation () const noexcept |
| Gets the transformation matrix from the Earth-Centered, Earth-Fixed (ECEF) coordinate system to the local horizontal coordinate system managed by this instance. More...
|
|
glm::dvec3 | localPositionToEcef (const glm::dvec3 &localPosition) const noexcept |
| Converts a position in the local horizontal coordinate system managed by this instance to Earth-Centered, Earth-Fixed (ECEF). More...
|
|
glm::dvec3 | ecefPositionToLocal (const glm::dvec3 &ecefPosition) const noexcept |
| Converts a position in the Earth-Centered, Earth-Fixed (ECEF) coordinate system to the local horizontal coordinate system managed by this instance. More...
|
|
glm::dvec3 | localDirectionToEcef (const glm::dvec3 &localDirection) const noexcept |
| Converts a direction in the local horizontal coordinate system managed by this instance to Earth-Centered, Earth-Fixed (ECEF). More...
|
|
glm::dvec3 | ecefDirectionToLocal (const glm::dvec3 &ecefDirection) const noexcept |
| Converts a direction in the Earth-Centered, Earth-Fixed (ECEF) coordinate system to the local horizontal coordinate system managed by this instance. More...
|
|
glm::dmat4 | computeTransformationToAnotherLocal (const LocalHorizontalCoordinateSystem &target) const noexcept |
| Computes the transformation matrix from this local horizontal coordinate system to another one. For example, if the returned matrix is multiplied with a vector representing a position in this coordinate system, the result will be a new vector representing the position in the target coordinate system. More...
|
|
A coordinate system created from a local horizontal plane at a particular origin point on the globe.
Each principal axis in the new coordinate system can be specified to point in a particular compass direction, or it can point up or down. In this way, a right-handed or left-handed coordinate system can be created.
Definition at line 25 of file LocalHorizontalCoordinateSystem.h.
CesiumGeospatial::LocalHorizontalCoordinateSystem::LocalHorizontalCoordinateSystem |
( |
const glm::dmat4 & |
localToEcef | ) |
|
|
explicit |
Create a new coordinate system with a specified transformation to the Earth-Centered, Earth-Fixed frame. This is an advanced constructor and should be avoided in most cases.
This constructor can be used to save/restore the state of an instance. It can also be used to create unusual coordinate systems that can't be created by the other constructors, such as coordinate systems where the axes aren't aligned with compass directions.
- Parameters
-
localToEcef | The transformation matrix from this coordinate system to the ECEF frame. |
CesiumGeospatial::LocalHorizontalCoordinateSystem::LocalHorizontalCoordinateSystem |
( |
const glm::dmat4 & |
localToEcef, |
|
|
const glm::dmat4 & |
ecefToLocal |
|
) |
| |
Create a new coordinate system with the specified transformations between the local frame and the Earth-Centered, Earth-Fixed frame. This is an advanced constructor and should be avoided in most cases.
This constructor can be used to save/restore the state of an instance. It can also be used to create unusual coordinate systems that can't be created by the other constructors, such as coordinate systems where the axes aren't aligned with compass directions.
- Parameters
-
localToEcef | The transformation matrix from this coordinate system to the ECEF frame. This must be the inverse of ecefToLocal or behavior is undefined, but this is not enforced. |
ecefToLocal | The transformation matrix from the ECEF frame to this coordinate system. This must be the inverse of localToEcef or behavior is undefined, but this is not enforced. |