15 #include <vsg/core/Inherit.h>
16 #include <vsg/maths/mat4.h>
17 #include <vsg/maths/vec3.h>
22 const double WGS_84_RADIUS_EQUATOR = 6378137.0;
23 const double WGS_84_RADIUS_POLAR = 6356752.3142;
30 EllipsoidModel(
double rEquator = WGS_84_RADIUS_EQUATOR,
double rPolar = WGS_84_RADIUS_POLAR);
34 return _radiusEquator == rhs._radiusEquator && _radiusPolar == rhs._radiusPolar;
39 return _radiusEquator != rhs._radiusEquator || _radiusPolar != rhs._radiusPolar;
42 double radiusEquator()
const {
return _radiusEquator; }
43 double radiusPolar()
const {
return _radiusPolar; }
45 void read(
Input& input)
override;
46 void write(
Output& output)
const override;
61 void _computeEccentricitySquared();
63 double _radiusEquator;
65 double _eccentricitySquared;
Definition: EllipsoidModel.h:28
dvec3 convertECEFToLatLongAltitude(const dvec3 &ecef) const
latitude and longitude in degrees, altitude in metres, ECEF coords in metres.
dmat4 computeWorldToLocalTransform(const dvec3 &lla) const
latitude and longitude in degrees, altitude in metres
dmat4 computeLocalToWorldTransform(const dvec3 &lla) const
latitude and longitude in degrees, altitude in metres
dvec3 convertLatLongAltitudeToECEF(const dvec3 &lla) const
latitude and longitude in degrees, altitude in metres, ECEF coords in metres.