6 #include <CesiumGeometry/Plane.h>
9 #include <glm/vec2.hpp>
10 #include <glm/vec3.hpp>
31 const glm::dvec3& origin,
32 const Ellipsoid& ellipsoid CESIUM_DEFAULT_ELLIPSOID);
42 const glm::dmat4& eastNorthUpToFixedFrame,
43 const Ellipsoid& ellipsoid CESIUM_DEFAULT_ELLIPSOID);
53 const glm::dvec3&
getOrigin() const noexcept {
return this->_origin; }
58 const glm::dvec3&
getXAxis() const noexcept {
return this->_xAxis; }
63 const glm::dvec3&
getYAxis() const noexcept {
return this->_yAxis; }
69 return this->_plane.getNormal();
101 static glm::dmat4 computeEastNorthUpToFixedFrame(
102 const glm::dvec3& origin,
103 const Ellipsoid& ellipsoid CESIUM_DEFAULT_ELLIPSOID);
A plane in Hessian Normal Format.
A plane tangent to an Ellipsoid at a certain origin position.
const Ellipsoid & getEllipsoid() const noexcept
Returns the Ellipsoid.
const glm::dvec3 & getZAxis() const noexcept
Returns the z-axis (i.e. the normal) of this plane.
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::dmat4 &eastNorthUpToFixedFrame, const Ellipsoid &ellipsoid CESIUM_DEFAULT_ELLIPSOID)
Creates a new instance.
const glm::dvec3 & getOrigin() const noexcept
Returns the origin, in cartesian coordinates.
const CesiumGeometry::Plane & getPlane() const noexcept
Returns a CesiumGeometry::Plane representation of this plane.
EllipsoidTangentPlane(const glm::dvec3 &origin, const Ellipsoid &ellipsoid CESIUM_DEFAULT_ELLIPSOID)
Creates a new instance.
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.