public bool ComputeRadiusAtLatitude(const AngularValue &latitude, LinearValue &radius) const
Description
The ComputeRadiusAtLatitude method computes the radius of the Ellipsoid at the specified latitude. The radius is returned as the LinearValue passed as the second argument to the method. The method returns a boolean value indicating the success of the operation.
Example
void Ellipsoid_ComputeRadiusAtLatitude()
{
GeoCalc.Ellipsoid ell;
GeoCalc.LinearValue semiMaj;
semiMaj.set_InMeters(6378137);
ell.set_SemiMajor(semiMaj);
if(ell.get_InvFlatDefinitive())
{
ell.set_InverseFlattening(298.257223563);
}
else
{
GeoCalc.LinearValue semiMin;
semiMin.set_InMeters(6356752.31424518);
ell.set_SemiMinor(semiMin);
}
GeoCalc.AngularValue lat;
lat.set_InDegrees(45.66);
GeoCalc.LinearValue radius;
if(! ell.ComputeRadiusAtLatitude(lat, radius))
{
AfxMessageBox("ComputeRadiusAtLatitude failed");
}
}
Comments
0 comments
Please sign in to leave a comment.