3#include <CesiumGeometry/Plane.h>
4#include <CesiumGeospatial/Ellipsoid.h>
5#include <CesiumGeospatial/Library.h>
30 const glm::dvec3& origin,
31 const Ellipsoid& ellipsoid CESIUM_DEFAULT_ELLIPSOID);
41 const glm::dmat4& eastNorthUpToFixedFrame,
42 const Ellipsoid& ellipsoid CESIUM_DEFAULT_ELLIPSOID);
52 const glm::dvec3&
getOrigin() const noexcept {
return this->_origin; }
57 const glm::dvec3&
getXAxis() const noexcept {
return this->_xAxis; }
62 const glm::dvec3&
getYAxis() const noexcept {
return this->_yAxis; }
68 return this->_plane.getNormal();
100 static glm::dmat4 computeEastNorthUpToFixedFrame(
101 const glm::dvec3& origin,
102 const Ellipsoid& ellipsoid CESIUM_DEFAULT_ELLIPSOID);
A plane in Hessian Normal Format.
A plane tangent to an Ellipsoid at a certain origin position.
EllipsoidTangentPlane(const glm::dmat4 &eastNorthUpToFixedFrame, const Ellipsoid &ellipsoid=CesiumGeospatial::Ellipsoid::WGS84)
Creates a new instance.
const glm::dvec3 & getOrigin() const noexcept
Returns the origin, in cartesian coordinates.
const Ellipsoid & getEllipsoid() const noexcept
Returns the Ellipsoid.
glm::dvec2 projectPointToNearestOnPlane(const glm::dvec3 &cartesian) const noexcept
Computes the position of the projection of the given point on this plane.
const glm::dvec3 & getYAxis() const noexcept
Returns the y-axis of this plane.
EllipsoidTangentPlane(const glm::dvec3 &origin, const Ellipsoid &ellipsoid=CesiumGeospatial::Ellipsoid::WGS84)
Creates a new instance.
const CesiumGeometry::Plane & getPlane() const noexcept
Returns a CesiumGeometry::Plane representation of this plane.
const glm::dvec3 & getZAxis() const noexcept
Returns the z-axis (i.e. the normal) of this plane.
const glm::dvec3 & getXAxis() const noexcept
Returns the x-axis of this plane.
A quadratic surface defined in Cartesian coordinates.
Classes for geospatial computations in Cesium.