get_Eccentricity Method

WRAPPER_API double get_Eccentricity() const

 

Description

The get_Eccentricity method returns the eccentricity of the Ellipsoid.

 

Example

void Ellipsoid_getEccentricity(GEOCALCPBW_NAMESPACE::Ellipsoid & ell)

{

char temp[256];

CString description;

description += "Ellipsoid: ";

description += ell.get_Name();

description += "\n";

sprintf(temp, "Eccentricity = %f", ell.get_Eccentricity());

description += temp;

description += "\n";

sprintf(temp, "Eccentricity Squared = %f", ell.get_EccentricitySquared());

description += temp;

description += "\n";

sprintf(temp, "Inverse Flattening = %f", ell.get_InverseFlattening());

description += temp;

description += "\n";

sprintf(temp, "Semi-Major Radius = %f meters", ell.get_SemiMajor().get_InMeters());

description += temp;

description += "\n";

sprintf(temp, "Semi-Minor Radius = %f meters", ell.get_SemiMinor().get_InMeters());

description += temp;

AfxMessageBox(description);

}